home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-06-25 | 25.4 KB | [TEXT/PCXT] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: HyperCard 2.1
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| PageFocus Data (other/pageFocusData)
| ext
| Unsupported |
1%
| dexvert
| Banyans VINES patch data (other/banyansVINESPatchData)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Jun 25 20:04:09 1991, modified Tue Jun 25 20:04:09 1991, creator 'PCXT', type ASCII, 25230 bytes "HyperCard 2.1" , at 0x630e 438 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [PCXT] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 48 79 70 65 72 43 | 61 72 64 20 32 2e 31 00 |..HyperC|ard 2.1.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 43 58 | 54 00 00 00 00 00 00 00 |.TEXTPCX|T.......|
|00000050| 00 00 00 00 00 62 8e 00 | 00 01 b6 a4 8d 8a 79 a4 |.....b..|......y.|
|00000060| 8d 8a 79 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..y.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d8 34 00 00 |........|.....4..|
|00000080| 0d 48 65 72 65 20 61 72 | 65 20 74 68 65 20 6b 6e |.Here ar|e the kn|
|00000090| 6f 77 6e 20 69 6e 63 6f | 6d 70 61 74 69 62 69 6c |own inco|mpatibil|
|000000a0| 69 74 69 65 73 20 62 65 | 74 77 65 65 6e 20 48 79 |ities be|tween Hy|
|000000b0| 70 65 72 43 61 72 64 20 | 32 2e 30 76 32 20 61 6e |perCard |2.0v2 an|
|000000c0| 64 20 53 79 73 74 65 6d | 20 37 2e 30 2e 0d 54 68 |d System| 7.0..Th|
|000000d0| 65 79 20 68 61 76 65 20 | 61 6c 6c 20 62 65 65 6e |ey have |all been|
|000000e0| 20 66 69 78 65 64 20 69 | 6e 20 48 79 70 65 72 43 | fixed i|n HyperC|
|000000f0| 61 72 64 20 32 2e 31 2e | 0d 0d 2d 20 57 68 65 6e |ard 2.1.|..- When|
|00000100| 20 79 6f 75 20 61 73 6b | 20 66 6f 72 20 74 68 65 | you ask| for the|
|00000110| 20 6e 61 6d 65 73 20 6f | 66 20 74 68 65 20 73 79 | names o|f the sy|
|00000120| 73 74 65 6d 20 48 65 6c | 70 20 6f 72 20 41 70 70 |stem Hel|p or App|
|00000130| 6c 69 63 61 74 69 6f 6e | 20 6d 65 6e 75 73 20 66 |lication| menus f|
|00000140| 72 6f 6d 0d 20 20 48 79 | 70 65 72 54 61 6c 6b 2c |rom. Hy|perTalk,|
|00000150| 20 79 6f 75 20 67 65 74 | 20 69 6e 64 65 63 69 70 | you get| indecip|
|00000160| 68 65 72 61 62 6c 65 20 | 73 74 72 69 6e 67 73 2e |herable |strings.|
|00000170| 0d 2d 20 22 74 68 65 20 | 6d 65 6e 75 73 22 20 64 |.- "the |menus" d|
|00000180| 6f 65 73 6e 27 74 20 69 | 6e 63 6c 75 64 65 20 74 |oesn't i|nclude t|
|00000190| 68 65 20 73 79 73 74 65 | 6d 20 48 65 6c 70 20 61 |he syste|m Help a|
|000001a0| 6e 64 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 6d |nd Appli|cation m|
|000001b0| 65 6e 75 73 2e 0d 2d 20 | 57 68 65 6e 20 79 6f 75 |enus..- |When you|
|000001c0| 20 6c 61 75 6e 63 68 20 | 48 79 70 65 72 43 61 72 | launch |HyperCar|
|000001d0| 64 20 61 6e 64 20 69 74 | 20 63 61 6e 27 74 20 66 |d and it| can't f|
|000001e0| 69 6e 64 20 74 68 65 20 | 48 6f 6d 65 20 73 74 61 |ind the |Home sta|
|000001f0| 63 6b 2c 20 79 6f 75 20 | 6d 75 73 74 0d 20 20 73 |ck, you |must. s|
|00000200| 65 6c 65 63 74 20 61 20 | 48 6f 6d 65 20 73 74 61 |elect a |Home sta|
|00000210| 63 6b 20 66 72 6f 6d 20 | 61 20 73 74 61 6e 64 61 |ck from |a standa|
|00000220| 72 64 20 66 69 6c 65 20 | 64 69 61 6c 6f 67 2e 20 |rd file |dialog. |
|00000230| 20 49 66 20 74 68 65 20 | 73 74 61 63 6b 20 79 6f | If the |stack yo|
|00000240| 75 0d 20 20 73 65 6c 65 | 63 74 20 63 61 6e 27 74 |u. sele|ct can't|
|00000250| 20 62 65 20 6f 70 65 6e | 65 64 20 28 74 68 69 73 | be open|ed (this|
|00000260| 20 63 61 6e 20 68 61 70 | 70 65 6e 20 69 66 20 69 | can hap|pen if i|
|00000270| 74 20 68 61 73 20 61 6c | 72 65 61 64 79 20 62 65 |t has al|ready be|
|00000280| 65 6e 20 6f 70 65 6e 65 | 64 0d 20 20 77 69 74 68 |en opene|d. with|
|00000290| 20 77 72 69 74 65 20 70 | 65 72 6d 69 73 73 69 6f | write p|ermissio|
|000002a0| 6e 20 62 79 20 61 6e 6f | 74 68 65 72 20 61 70 70 |n by ano|ther app|
|000002b0| 6c 69 63 61 74 69 6f 6e | 29 20 48 79 70 65 72 43 |lication|) HyperC|
|000002c0| 61 72 64 20 77 69 6c 6c | 20 66 72 65 65 7a 65 0d |ard will| freeze.|
|000002d0| 20 20 74 68 65 20 6d 61 | 63 68 69 6e 65 2e 0d 2d | the ma|chine..-|
|000002e0| 20 49 66 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f | If ther|e are no|
|000002f0| 20 75 73 65 72 20 6d 65 | 6e 75 73 2c 20 74 68 65 | user me|nus, the|
|00000300| 20 53 79 73 74 65 6d 20 | 37 20 48 65 6c 70 20 6d | System |7 Help m|
|00000310| 65 6e 75 20 64 69 73 61 | 70 70 65 61 72 73 20 77 |enu disa|ppears w|
|00000320| 68 65 6e 20 74 68 65 0d | 20 20 75 73 65 72 4c 65 |hen the.| userLe|
|00000330| 76 65 6c 20 63 68 61 6e | 67 65 73 2e 20 20 49 74 |vel chan|ges. It|
|00000340| 20 63 6f 6d 65 73 20 62 | 61 63 6b 20 69 66 20 61 | comes b|ack if a|
|00000350| 20 75 73 65 72 20 6d 65 | 6e 75 20 69 73 20 63 72 | user me|nu is cr|
|00000360| 65 61 74 65 64 20 66 72 | 6f 6d 20 61 20 73 63 72 |eated fr|om a scr|
|00000370| 69 70 74 2e 0d 2d 20 54 | 68 65 20 48 79 70 65 72 |ipt..- T|he Hyper|
|00000380| 54 61 6c 6b 20 63 6f 6d | 6d 61 6e 64 73 20 74 68 |Talk com|mands th|
|00000390| 61 74 20 72 65 66 65 72 | 20 74 6f 20 66 69 6c 65 |at refer| to file|
|000003a0| 73 20 64 6f 6e 27 74 20 | 77 6f 72 6b 20 77 69 74 |s don't |work wit|
|000003b0| 68 20 61 6c 69 61 73 20 | 66 69 6c 65 73 2e 0d 0d |h alias |files...|
|000003c0| 0d 0d 57 68 65 6e 20 48 | 79 70 65 72 43 61 72 64 |..When H|yperCard|
|000003d0| 20 32 2e 31 20 72 65 63 | 65 69 76 65 73 20 61 6e | 2.1 rec|eives an|
|000003e0| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 2c 20 69 74 | Apple e|vent, it|
|000003f0| 20 73 65 6e 64 73 20 61 | 6e 20 61 70 70 6c 65 45 | sends a|n appleE|
|00000400| 76 65 6e 74 0d 6d 65 73 | 73 61 67 65 20 74 6f 20 |vent.mes|sage to |
|00000410| 74 68 65 20 63 75 72 72 | 65 6e 74 20 63 61 72 64 |the curr|ent card|
|00000420| 2e 20 20 54 68 61 74 20 | 6d 65 61 6e 73 20 74 68 |. That |means th|
|00000430| 61 74 20 79 6f 75 20 63 | 61 6e 20 72 65 73 70 6f |at you c|an respo|
|00000440| 6e 64 20 74 6f 20 41 70 | 70 6c 65 0d 65 76 65 6e |nd to Ap|ple.even|
|00000450| 74 73 20 77 69 74 68 20 | 48 79 70 65 72 54 61 6c |ts with |HyperTal|
|00000460| 6b 20 73 63 72 69 70 74 | 73 2e 20 20 42 75 74 20 |k script|s. But |
|00000470| 62 65 66 6f 72 65 20 79 | 6f 75 20 74 72 79 20 74 |before y|ou try t|
|00000480| 6f 20 77 72 69 74 65 20 | 73 75 63 68 20 73 63 72 |o write |such scr|
|00000490| 69 70 74 73 2c 0d 74 68 | 65 72 65 20 61 72 65 20 |ipts,.th|ere are |
|000004a0| 73 6f 6d 65 20 74 65 72 | 6d 73 20 61 6e 64 20 63 |some ter|ms and c|
|000004b0| 6f 6e 76 65 6e 74 69 6f | 6e 73 20 79 6f 75 20 73 |onventio|ns you s|
|000004c0| 68 6f 75 6c 64 20 62 65 | 20 66 61 6d 69 6c 69 61 |hould be| familia|
|000004d0| 72 20 77 69 74 68 2e 0d | 0d 54 68 65 20 66 69 67 |r with..|.The fig|
|000004e0| 75 72 65 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |ure.----|------..|
|000004f0| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 20 61 72 65 |Apple ev|ents are|
|00000500| 20 6c 69 6b 65 20 61 20 | 70 61 63 6b 61 67 65 20 | like a |package |
|00000510| 66 75 6c 6c 20 6f 66 20 | 72 61 77 20 6d 61 74 65 |full of |raw mate|
|00000520| 72 69 61 6c 73 20 74 68 | 61 74 20 61 72 72 69 76 |rials th|at arriv|
|00000530| 65 20 61 74 20 61 0d 66 | 61 63 74 6f 72 79 2e 20 |e at a.f|actory. |
|00000540| 20 54 68 65 79 20 68 61 | 76 65 20 61 20 72 65 74 | They ha|ve a ret|
|00000550| 75 72 6e 20 61 64 64 72 | 65 73 73 20 6f 6e 20 74 |urn addr|ess on t|
|00000560| 68 65 6d 20 2d 2d 20 69 | 6e 20 48 79 70 65 72 54 |hem -- i|n HyperT|
|00000570| 61 6c 6b 2c 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |alk, a s|tring of|
|00000580| 0d 74 68 65 20 66 6f 72 | 6d 20 22 5a 6f 6e 65 3a |.the for|m "Zone:|
|00000590| 4d 61 63 69 6e 74 6f 73 | 68 3a 50 72 6f 67 72 61 |Macintos|h:Progra|
|000005a0| 6d 22 2e 20 20 54 68 65 | 79 20 68 61 76 65 20 61 |m". The|y have a|
|000005b0| 6e 20 65 78 70 6c 61 6e | 61 74 69 6f 6e 20 6f 66 |n explan|ation of|
|000005c0| 20 77 68 61 74 20 74 68 | 65 69 72 0d 63 6f 6e 74 | what th|eir.cont|
|000005d0| 65 6e 74 73 20 61 72 65 | 20 66 6f 72 20 2d 2d 20 |ents are| for -- |
|000005e0| 74 68 65 20 63 6c 61 73 | 73 20 61 6e 64 20 69 64 |the clas|s and id|
|000005f0| 2c 20 77 68 69 63 68 20 | 74 6f 67 65 74 68 65 72 |, which |together|
|00000600| 20 63 6f 6e 73 69 74 69 | 74 75 74 65 20 61 20 76 | consiti|tute a v|
|00000610| 65 72 62 2c 0d 64 69 72 | 65 63 74 69 6e 67 20 74 |erb,.dir|ecting t|
|00000620| 68 65 20 72 65 63 65 69 | 76 65 72 20 77 68 61 74 |he recei|ver what|
|00000630| 20 64 6f 20 74 6f 20 77 | 69 74 68 20 74 68 65 20 | do to w|ith the |
|00000640| 70 61 63 6b 61 67 65 2e | 20 20 41 6e 64 20 6f 66 |package.| And of|
|00000650| 20 63 6f 75 72 73 65 20 | 74 68 65 72 65 0d 61 72 | course |there.ar|
|00000660| 65 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 74 |e the co|ntents t|
|00000670| 68 65 6d 73 65 6c 76 65 | 73 20 2d 2d 20 74 68 65 |hemselve|s -- the|
|00000680| 20 65 76 65 6e 74 20 70 | 61 72 61 6d 65 74 65 72 | event p|arameter|
|00000690| 73 2e 0d 0d 57 68 65 6e | 20 79 6f 75 20 67 65 74 |s...When| you get|
|000006a0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 73 65 20 70 61 | one of |these pa|
|000006b0| 63 6b 61 67 65 73 2c 20 | 79 6f 75 20 68 61 76 65 |ckages, |you have|
|000006c0| 20 74 6f 20 75 6e 70 61 | 63 6b 20 69 74 20 62 65 | to unpa|ck it be|
|000006d0| 66 6f 72 65 20 79 6f 75 | 20 63 61 6e 0d 6d 61 6b |fore you| can.mak|
|000006e0| 65 20 73 6f 6d 65 74 68 | 69 6e 67 20 6f 75 74 20 |e someth|ing out |
|000006f0| 6f 66 20 74 68 65 20 72 | 61 77 20 6d 61 74 65 72 |of the r|aw mater|
|00000700| 69 61 6c 73 20 69 6e 73 | 69 64 65 2e 20 20 42 75 |ials ins|ide. Bu|
|00000710| 74 20 79 6f 75 20 63 61 | 6e 27 74 20 6a 75 73 74 |t you ca|n't just|
|00000720| 20 72 69 70 0d 69 6e 74 | 6f 20 74 68 65 20 70 61 | rip.int|o the pa|
|00000730| 63 6b 61 67 65 20 77 69 | 6c 6c 79 2d 6e 69 6c 6c |ckage wi|lly-nill|
|00000740| 79 2e 20 20 59 6f 75 20 | 68 61 76 65 20 74 6f 20 |y. You |have to |
|00000750| 61 73 6b 20 66 6f 72 20 | 77 68 61 74 20 79 6f 75 |ask for |what you|
|00000760| 20 77 61 6e 74 2c 20 62 | 79 20 6e 61 6d 65 2e 0d | want, b|y name..|
|00000770| 22 47 69 76 65 20 6d 65 | 20 74 68 65 20 73 6e 6f |"Give me| the sno|
|00000780| 64 2e 22 20 22 4f 4b 2c | 20 6e 6f 77 20 67 69 76 |d." "OK,| now giv|
|00000790| 65 20 6d 65 20 74 68 65 | 20 6c 65 72 64 2e 22 20 |e me the| lerd." |
|000007a0| 20 59 6f 75 20 75 6e 70 | 61 63 6b 20 74 68 65 20 | You unp|ack the |
|000007b0| 63 6f 6e 74 65 6e 74 73 | 2c 0d 6f 6e 65 20 62 79 |contents|,.one by|
|000007c0| 20 6f 6e 65 2c 20 61 6e | 64 20 6d 61 6b 65 20 6f | one, an|d make o|
|000007d0| 75 74 20 6f 66 20 74 68 | 65 6d 20 77 68 61 74 65 |ut of th|em whate|
|000007e0| 76 65 72 20 79 6f 75 27 | 72 65 20 64 69 72 65 63 |ver you'|re direc|
|000007f0| 74 65 64 20 74 6f 20 6d | 61 6b 65 20 62 79 20 74 |ted to m|ake by t|
|00000800| 68 65 0d 63 6c 61 73 73 | 20 61 6e 64 20 69 64 2e |he.class| and id.|
|00000810| 0d 20 0d 54 68 65 20 63 | 61 74 63 68 20 69 73 20 |. .The c|atch is |
|00000820| 74 68 61 74 20 74 68 65 | 20 70 61 63 6b 61 67 65 |that the| package|
|00000830| 20 64 6f 65 73 6e 27 74 | 20 63 6f 6d 65 20 77 69 | doesn't| come wi|
|00000840| 74 68 20 61 20 70 61 63 | 6b 69 6e 67 20 6c 69 73 |th a pac|king lis|
|00000850| 74 2e 20 20 59 6f 75 27 | 72 65 0d 73 75 70 70 6f |t. You'|re.suppo|
|00000860| 73 65 64 20 74 6f 20 6b | 6e 6f 77 20 77 68 61 74 |sed to k|now what|
|00000870| 27 73 20 69 6e 20 69 74 | 20 2d 2d 20 79 6f 75 20 |'s in it| -- you |
|00000880| 68 61 76 65 20 61 20 62 | 69 67 20 62 6f 6f 6b 20 |have a b|ig book |
|00000890| 74 68 61 74 20 74 65 6c | 6c 73 20 79 6f 75 20 74 |that tel|ls you t|
|000008a0| 68 61 74 0d 77 68 65 6e | 65 76 65 72 20 79 6f 75 |hat.when|ever you|
|000008b0| 20 67 65 74 20 61 20 70 | 61 63 6b 61 67 65 20 74 | get a p|ackage t|
|000008c0| 68 61 74 20 79 6f 75 27 | 72 65 20 73 75 70 70 6f |hat you'|re suppo|
|000008d0| 73 65 64 20 74 6f 20 6d | 61 6b 65 20 69 6e 74 6f |sed to m|ake into|
|000008e0| 20 61 20 22 77 69 6c 64 | 20 70 6c 75 6d 22 2c 0d | a "wild| plum",.|
|000008f0| 69 74 27 73 20 73 75 70 | 70 6f 73 65 64 20 74 6f |it's sup|posed to|
|00000900| 20 68 61 76 65 20 61 20 | 22 62 6f 72 6b 22 2c 20 | have a |"bork", |
|00000910| 61 20 22 66 6c 61 6d 22 | 2c 20 61 6e 64 20 61 20 |a "flam"|, and a |
|00000920| 22 6e 69 74 7a 22 20 69 | 6e 73 69 64 65 20 6f 66 |"nitz" i|nside of|
|00000930| 20 69 74 2e 20 20 53 6f | 0d 79 6f 75 20 75 6e 70 | it. So|.you unp|
|00000940| 61 63 6b 20 74 68 65 20 | 62 6f 72 6b 2c 20 74 68 |ack the |bork, th|
|00000950| 65 20 66 6c 61 6d 2c 20 | 61 6e 64 20 74 68 65 20 |e flam, |and the |
|00000960| 6e 69 74 7a 2c 20 61 6e | 64 20 74 68 65 6e 20 79 |nitz, an|d then y|
|00000970| 6f 75 20 6d 61 6b 65 20 | 74 68 65 20 77 69 6c 64 |ou make |the wild|
|00000980| 0d 70 6c 75 6d 20 6f 75 | 74 20 6f 66 20 74 68 65 |.plum ou|t of the|
|00000990| 6d 20 61 6e 64 20 73 65 | 6e 64 20 69 74 20 62 61 |m and se|nd it ba|
|000009a0| 63 6b 2e 0d 20 0d 20 20 | 20 20 41 70 70 6c 65 20 |ck.. . | Apple |
|000009b0| 65 76 65 6e 74 20 3d 20 | 70 61 63 6b 61 67 65 0d |event = |package.|
|000009c0| 20 20 20 20 63 6c 61 73 | 73 20 61 6e 64 20 69 64 | clas|s and id|
|000009d0| 20 3d 20 74 65 72 73 65 | 20 64 69 72 65 63 74 69 | = terse| directi|
|000009e0| 6f 6e 73 20 66 6f 72 20 | 77 68 61 74 20 74 6f 20 |ons for |what to |
|000009f0| 64 6f 20 77 69 74 68 20 | 74 68 65 20 70 61 63 6b |do with |the pack|
|00000a00| 61 67 65 0d 20 20 20 20 | 70 61 72 61 6d 65 74 65 |age. |paramete|
|00000a10| 72 73 20 3d 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 |rs = con|tents of|
|00000a20| 20 74 68 65 20 70 61 63 | 6b 61 67 65 0d 20 20 20 | the pac|kage. |
|00000a30| 20 6b 65 79 77 6f 72 64 | 73 20 3d 20 6e 61 6d 65 | keyword|s = name|
|00000a40| 73 20 66 6f 72 20 65 61 | 63 68 20 74 68 69 6e 67 |s for ea|ch thing|
|00000a50| 20 69 6e 20 74 68 65 20 | 70 61 63 6b 61 67 65 0d | in the |package.|
|00000a60| 0d 0d 54 68 65 20 6c 65 | 73 73 6f 6e 0d 2d 2d 2d |..The le|sson.---|
|00000a70| 2d 2d 2d 2d 2d 2d 2d 0d | 20 0d 49 6e 20 48 79 70 |-------.| .In Hyp|
|00000a80| 65 72 54 61 6c 6b 2c 20 | 77 68 65 6e 20 79 6f 75 |erTalk, |when you|
|00000a90| 20 68 61 6e 64 6c 65 20 | 74 68 65 20 61 70 70 6c | handle |the appl|
|00000aa0| 65 45 76 65 6e 74 20 6d | 65 73 73 61 67 65 2c 20 |eEvent m|essage, |
|00000ab0| 79 6f 75 20 66 69 72 73 | 74 20 6c 6f 6f 6b 20 61 |you firs|t look a|
|00000ac0| 74 0d 74 68 65 20 63 6c | 61 73 73 20 61 6e 64 20 |t.the cl|ass and |
|00000ad0| 69 64 2c 20 61 6e 64 20 | 74 68 65 79 20 74 65 6c |id, and |they tel|
|00000ae0| 6c 20 79 6f 75 20 77 68 | 61 74 20 79 6f 75 27 72 |l you wh|at you'r|
|00000af0| 65 20 73 75 70 70 6f 73 | 65 64 20 74 6f 20 64 6f |e suppos|ed to do|
|00000b00| 20 77 69 74 68 20 74 68 | 65 0d 65 76 65 6e 74 2e | with th|e.event.|
|00000b10| 20 20 49 66 20 69 74 27 | 73 20 61 6e 20 65 76 65 | If it'|s an eve|
|00000b20| 6e 74 20 74 68 61 74 20 | 79 6f 75 20 6b 6e 6f 77 |nt that |you know|
|00000b30| 20 68 6f 77 20 74 6f 20 | 68 61 6e 64 6c 65 2c 20 | how to |handle, |
|00000b40| 79 6f 75 20 61 6c 72 65 | 61 64 79 20 6b 6e 6f 77 |you alre|ady know|
|00000b50| 20 77 68 61 74 0d 74 68 | 65 20 70 61 72 61 6d 65 | what.th|e parame|
|00000b60| 74 65 72 73 20 61 72 65 | 20 2d 2d 20 79 6f 75 27 |ters are| -- you'|
|00000b70| 76 65 20 61 67 72 65 65 | 64 20 77 69 74 68 20 74 |ve agree|d with t|
|00000b80| 68 65 20 73 65 6e 64 65 | 72 20 69 6e 20 61 64 76 |he sende|r in adv|
|00000b90| 61 6e 63 65 20 6f 6e 20 | 77 68 61 74 27 73 0d 73 |ance on |what's.s|
|00000ba0| 75 70 70 6f 73 65 64 20 | 74 6f 20 62 65 20 69 6e |upposed |to be in|
|00000bb0| 20 69 74 2c 20 6f 72 20 | 69 74 27 73 20 61 20 73 | it, or |it's a s|
|00000bc0| 74 61 6e 64 61 72 64 20 | 41 70 70 6c 65 20 65 76 |tandard |Apple ev|
|00000bd0| 65 6e 74 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |ent defi|ned in t|
|00000be0| 68 65 0d 76 6f 6c 75 6d | 69 6e 6f 75 73 20 73 74 |he.volum|inous st|
|00000bf0| 61 6e 64 61 72 64 20 64 | 6f 63 75 6d 65 6e 74 61 |andard d|ocumenta|
|00000c00| 74 69 6f 6e 2e 20 20 53 | 6f 20 79 6f 75 20 75 6e |tion. S|o you un|
|00000c10| 70 61 63 6b 20 74 68 65 | 20 70 61 72 61 6d 65 74 |pack the| paramet|
|00000c20| 65 72 73 20 77 69 74 68 | 20 74 68 65 0d 22 72 65 |ers with| the."re|
|00000c30| 71 75 65 73 74 22 20 63 | 6f 6d 6d 61 6e 64 2c 20 |quest" c|ommand, |
|00000c40| 6d 61 6e 69 70 75 6c 61 | 74 65 20 74 68 65 6d 2c |manipula|te them,|
|00000c50| 20 61 6e 64 20 73 65 6e | 64 20 62 61 63 6b 20 77 | and sen|d back w|
|00000c60| 68 61 74 20 79 6f 75 20 | 6d 61 64 65 20 6f 75 74 |hat you |made out|
|00000c70| 20 6f 66 20 74 68 65 6d | 0d 77 69 74 68 20 74 68 | of them|.with th|
|00000c80| 65 20 22 72 65 70 6c 79 | 22 20 63 6f 6d 6d 61 6e |e "reply|" comman|
|00000c90| 64 2e 0d 20 0d 54 68 65 | 20 73 63 72 69 70 74 20 |d.. .The| script |
|00000ca0| 6d 69 67 68 74 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |might lo|ok like |
|00000cb0| 74 68 69 73 3a 0d 20 0d | 20 20 20 6f 6e 20 61 70 |this:. .| on ap|
|00000cc0| 70 6c 65 45 76 65 6e 74 | 20 63 6c 61 73 73 2c 69 |pleEvent| class,i|
|00000cd0| 64 2c 73 65 6e 64 65 72 | 0d 20 20 20 20 20 69 66 |d,sender|. if|
|00000ce0| 20 63 6c 61 73 73 20 26 | 20 69 64 20 69 73 20 22 | class &| id is "|
|00000cf0| 77 69 6c 64 70 6c 75 6d | 22 20 74 68 65 6e 0d 20 |wildplum|" then. |
|00000d00| 20 20 20 20 20 20 72 65 | 71 75 65 73 74 20 61 65 | re|quest ae|
|00000d10| 20 64 61 74 61 20 77 69 | 74 68 20 6b 65 79 77 6f | data wi|th keywo|
|00000d20| 72 64 20 22 62 6f 72 6b | 22 0d 20 20 20 20 20 20 |rd "bork|". |
|00000d30| 20 69 66 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 | if the |result i|
|00000d40| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00000d50| 20 20 20 2d 2d 20 70 72 | 6f 62 61 62 6c 79 20 22 | -- pr|obably "|
|00000d60| 4e 6f 74 20 66 6f 75 6e | 64 22 0d 20 20 20 20 20 |Not foun|d". |
|00000d70| 20 20 20 20 72 65 70 6c | 79 20 65 72 72 6f 72 20 | repl|y error |
|00000d80| 22 45 78 70 65 63 74 65 | 64 20 61 20 62 6f 72 6b |"Expecte|d a bork|
|00000d90| 20 62 75 74 20 67 6f 74 | 20 6e 6f 6e 65 2e 22 0d | but got| none.".|
|00000da0| 20 20 20 20 20 20 20 20 | 20 65 78 69 74 20 61 70 | | exit ap|
|00000db0| 70 6c 65 45 76 65 6e 74 | 0d 20 20 20 20 20 20 20 |pleEvent|. |
|00000dc0| 65 6e 64 20 69 66 0d 20 | 20 20 20 20 20 20 70 75 |end if. | pu|
|00000dd0| 74 20 69 74 20 69 6e 74 | 6f 20 74 68 65 42 6f 72 |t it int|o theBor|
|00000de0| 6b 0d 20 20 20 20 20 20 | 20 72 65 71 75 65 73 74 |k. | request|
|00000df0| 20 61 65 20 64 61 74 61 | 20 77 69 74 68 20 6b 65 | ae data| with ke|
|00000e00| 79 77 6f 72 64 20 22 66 | 6c 61 6d 22 0d 20 20 20 |yword "f|lam". |
|00000e10| 20 20 20 20 2e 0d 20 20 | 20 20 20 20 20 2e 0d 20 | .. | .. |
|00000e20| 20 20 20 20 20 20 2e 0d | 20 20 20 20 20 20 20 2e | ..| .|
|00000e30| 0d 20 20 20 20 20 20 20 | 67 65 74 20 77 69 6c 64 |. |get wild|
|00000e40| 50 6c 75 6d 4d 61 6b 69 | 6e 67 46 75 6e 63 74 69 |PlumMaki|ngFuncti|
|00000e50| 6f 6e 28 74 68 65 42 6f | 72 6b 2c 74 68 65 46 6c |on(theBo|rk,theFl|
|00000e60| 61 6d 2c 74 68 65 4e 69 | 74 7a 29 20 20 2d 2d 20 |am,theNi|tz) -- |
|00000e70| 70 72 6f 63 65 73 73 20 | 69 74 0d 20 20 20 20 20 |process |it. |
|00000e80| 20 20 72 65 70 6c 79 20 | 69 74 20 20 2d 2d 20 73 | reply |it -- s|
|00000e90| 65 6e 64 20 62 61 63 6b | 20 74 68 65 20 72 65 70 |end back| the rep|
|00000ea0| 6c 79 0d 20 20 20 20 20 | 65 6c 73 65 20 70 61 73 |ly. |else pas|
|00000eb0| 73 20 61 70 70 6c 65 45 | 76 65 6e 74 20 20 2d 2d |s appleE|vent --|
|00000ec0| 20 77 65 20 64 6f 6e 27 | 74 20 72 65 63 6f 67 6e | we don'|t recogn|
|00000ed0| 69 7a 65 20 74 68 69 73 | 20 65 76 65 6e 74 3b 20 |ize this| event; |
|00000ee0| 70 61 73 73 20 69 74 20 | 6f 6e 0d 20 20 20 65 6e |pass it |on. en|
|00000ef0| 64 20 61 70 70 6c 65 45 | 76 65 6e 74 0d 20 0d 0d |d appleE|vent. ..|
|00000f00| 4b 65 79 77 6f 72 64 73 | 0d 2d 2d 2d 2d 2d 2d 2d |Keywords|.-------|
|00000f10| 2d 0d 0d 54 68 69 6e 6b | 20 6f 66 20 61 20 6b 65 |-..Think| of a ke|
|00000f20| 79 77 6f 72 64 20 66 6f | 72 20 61 20 70 69 65 63 |yword fo|r a piec|
|00000f30| 65 20 6f 66 20 64 61 74 | 61 20 69 6e 20 74 68 65 |e of dat|a in the|
|00000f40| 20 70 61 63 6b 61 67 65 | 20 61 73 20 69 74 73 20 | package| as its |
|00000f50| 6e 61 6d 65 20 2d 2d 20 | 69 74 27 73 0d 74 68 65 |name -- |it's.the|
|00000f60| 20 68 61 6e 64 6c 65 20 | 79 6f 75 20 6e 65 65 64 | handle |you need|
|00000f70| 20 74 6f 20 70 75 6c 6c | 20 69 74 20 6f 75 74 20 | to pull| it out |
|00000f80| 6f 66 20 74 68 65 20 70 | 61 63 6b 61 67 65 2e 20 |of the p|ackage. |
|00000f90| 20 41 73 6b 69 6e 67 20 | 66 6f 72 20 61 20 70 61 | Asking |for a pa|
|00000fa0| 72 61 6d 65 74 65 72 0d | 62 79 20 6b 65 79 77 6f |rameter.|by keywo|
|00000fb0| 72 64 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 61 |rd is th|e same a|
|00000fc0| 73 20 61 73 6b 69 6e 67 | 20 66 6f 72 20 61 20 70 |s asking| for a p|
|00000fd0| 69 65 63 65 20 6f 66 20 | 72 61 77 20 6d 61 74 65 |iece of |raw mate|
|00000fe0| 72 69 61 6c 20 62 79 20 | 6e 61 6d 65 2e 0d 0d 4b |rial by |name...K|
|00000ff0| 65 79 77 6f 72 64 73 20 | 61 72 65 20 61 72 62 69 |eywords |are arbi|
|00001000| 74 72 61 72 79 2e 20 20 | 57 68 6f 65 76 65 72 20 |trary. |Whoever |
|00001010| 69 6e 76 65 6e 74 73 20 | 61 6e 20 41 70 70 6c 65 |invents |an Apple|
|00001020| 20 65 76 65 6e 74 20 6d | 61 6b 65 73 20 74 68 65 | event m|akes the|
|00001030| 6d 20 75 70 2c 20 6f 6e | 0d 74 68 65 20 73 70 6f |m up, on|.the spo|
|00001040| 74 2c 20 6f 75 74 20 6f | 66 20 74 68 65 20 62 6c |t, out o|f the bl|
|00001050| 75 65 2c 20 74 6f 20 6e | 61 6d 65 20 74 68 65 20 |ue, to n|ame the |
|00001060| 70 69 65 63 65 73 20 6f | 66 20 64 61 74 61 20 74 |pieces o|f data t|
|00001070| 68 61 74 20 67 6f 20 61 | 6c 6f 6e 67 20 77 69 74 |hat go a|long wit|
|00001080| 68 0d 74 68 65 20 65 76 | 65 6e 74 2e 20 20 54 68 |h.the ev|ent. Th|
|00001090| 65 20 73 74 61 6e 64 61 | 72 64 20 41 70 70 6c 65 |e standa|rd Apple|
|000010a0| 20 65 76 65 6e 74 73 20 | 74 68 61 74 20 68 61 76 | events |that hav|
|000010b0| 65 20 61 6c 72 65 61 64 | 79 20 62 65 65 6e 20 64 |e alread|y been d|
|000010c0| 65 66 69 6e 65 64 2c 20 | 61 6c 6f 6e 67 0d 77 69 |efined, |along.wi|
|000010d0| 74 68 20 74 68 65 20 6b | 65 79 77 6f 72 64 73 20 |th the k|eywords |
|000010e0| 66 6f 72 20 74 68 65 69 | 72 20 72 65 71 75 69 72 |for thei|r requir|
|000010f0| 65 64 20 61 6e 64 20 6f | 70 74 69 6f 6e 61 6c 20 |ed and o|ptional |
|00001100| 70 61 72 61 6d 65 74 65 | 72 73 2c 20 61 72 65 20 |paramete|rs, are |
|00001110| 64 65 73 63 72 69 62 65 | 64 0d 69 6e 20 74 68 65 |describe|d.in the|
|00001120| 20 41 70 70 6c 65 20 45 | 76 65 6e 74 20 52 65 67 | Apple E|vent Reg|
|00001130| 69 73 74 72 79 2e 0d 20 | 0d 0d 54 68 65 20 64 69 |istry.. |..The di|
|00001140| 72 65 63 74 20 6f 62 6a | 65 63 74 0d 2d 2d 2d 2d |rect obj|ect.----|
|00001150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 20 0d |--------|-----. .|
|00001160| 4d 61 6e 79 20 41 70 70 | 6c 65 20 65 76 65 6e 74 |Many App|le event|
|00001170| 73 20 61 72 72 69 76 65 | 20 77 69 74 68 20 6a 75 |s arrive| with ju|
|00001180| 73 74 20 6f 6e 65 20 70 | 69 65 63 65 20 6f 66 20 |st one p|iece of |
|00001190| 72 61 77 20 6d 61 74 65 | 72 69 61 6c 20 69 6e 20 |raw mate|rial in |
|000011a0| 74 68 65 6d 2c 20 6f 72 | 0d 6f 6e 65 20 70 69 65 |them, or|.one pie|
|000011b0| 63 65 20 74 68 61 74 27 | 73 20 6d 6f 72 65 20 69 |ce that'|s more i|
|000011c0| 6d 70 6f 72 74 61 6e 74 | 20 74 68 61 6e 20 74 68 |mportant| than th|
|000011d0| 65 20 6f 74 68 65 72 73 | 2e 20 20 42 79 20 63 6f |e others|. By co|
|000011e0| 6e 76 65 6e 74 69 6f 6e | 2c 20 74 68 69 73 20 70 |nvention|, this p|
|000011f0| 69 65 63 65 0d 69 73 20 | 67 69 76 65 6e 20 74 68 |iece.is |given th|
|00001200| 65 20 6b 65 79 77 6f 72 | 64 20 22 2d 2d 2d 2d 22 |e keywor|d "----"|
|00001210| 20 61 6e 64 20 69 73 20 | 72 65 66 65 72 72 65 64 | and is |referred|
|00001220| 20 74 6f 20 69 6e 20 74 | 68 65 20 41 70 70 6c 65 | to in t|he Apple|
|00001230| 20 65 76 65 6e 74 0d 64 | 6f 63 75 6d 65 6e 61 74 | event.d|ocumenat|
|00001240| 69 6f 6e 20 61 73 20 22 | 74 68 65 20 64 69 72 65 |ion as "|the dire|
|00001250| 63 74 20 6f 62 6a 65 63 | 74 22 20 6f 72 20 22 74 |ct objec|t" or "t|
|00001260| 68 65 20 64 69 72 65 63 | 74 20 70 61 72 61 6d 65 |he direc|t parame|
|00001270| 74 65 72 22 2e 20 20 54 | 68 65 73 65 20 61 72 65 |ter". T|hese are|
|00001280| 0d 70 72 65 74 74 79 20 | 75 67 6c 79 20 6e 61 6d |.pretty |ugly nam|
|00001290| 65 73 2c 20 73 6f 20 69 | 6e 20 48 79 70 65 72 54 |es, so i|n HyperT|
|000012a0| 61 6c 6b 20 79 6f 75 20 | 63 61 6e 20 6a 75 73 74 |alk you |can just|
|000012b0| 20 63 61 6c 6c 20 69 74 | 20 74 68 65 20 22 64 61 | call it| the "da|
|000012c0| 74 61 22 20 61 6e 64 0d | 6c 65 61 76 65 20 6f 66 |ta" and.|leave of|
|000012d0| 66 20 74 68 65 20 6b 65 | 79 77 6f 72 64 20 73 70 |f the ke|yword sp|
|000012e0| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 2d 2d 20 48 |ecificat|ion -- H|
|000012f0| 79 70 65 72 43 61 72 64 | 20 77 69 6c 6c 20 6b 6e |yperCard| will kn|
|00001300| 6f 77 20 77 68 61 74 20 | 79 6f 75 27 72 65 0d 74 |ow what |you're.t|
|00001310| 61 6c 6b 69 6e 67 20 61 | 62 6f 75 74 2e 0d 20 0d |alking a|bout.. .|
|00001320| 20 20 20 72 65 71 75 65 | 73 74 20 61 70 70 6c 65 | reque|st apple|
|00001330| 45 76 65 6e 74 20 64 61 | 74 61 0d 20 0d 54 68 69 |Event da|ta. .Thi|
|00001340| 73 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |s is equ|ivalent |
|00001350| 74 6f 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |to the f|ollowing|
|00001360| 20 73 74 61 74 65 6d 65 | 6e 74 2e 0d 20 0d 20 20 | stateme|nt.. . |
|00001370| 20 72 65 71 75 65 73 74 | 20 61 70 70 6c 65 45 76 | request| appleEv|
|00001380| 65 6e 74 20 64 61 74 61 | 20 6f 66 20 6b 65 79 77 |ent data| of keyw|
|00001390| 6f 72 64 20 22 2d 2d 2d | 2d 22 0d 20 0d 54 68 65 |ord "---|-". .The|
|000013a0| 20 64 69 72 65 63 74 20 | 6f 62 6a 65 63 74 20 66 | direct |object f|
|000013b0| 6f 72 20 74 68 65 20 27 | 6f 64 6f 63 27 20 65 76 |or the '|odoc' ev|
|000013c0| 65 6e 74 20 69 73 20 74 | 68 65 20 6c 69 73 74 20 |ent is t|he list |
|000013d0| 6f 66 20 64 6f 63 75 6d | 65 6e 74 73 20 74 6f 20 |of docum|ents to |
|000013e0| 6f 70 65 6e 2e 0d 54 68 | 65 20 64 69 72 65 63 74 |open..Th|e direct|
|000013f0| 20 6f 62 6a 65 63 74 20 | 66 6f 72 20 74 68 65 20 | object |for the |
|00001400| 27 64 6f 73 63 27 20 65 | 76 65 6e 74 20 69 73 20 |'dosc' e|vent is |
|00001410| 74 68 65 20 73 63 72 69 | 70 74 20 74 6f 20 65 78 |the scri|pt to ex|
|00001420| 65 63 75 74 65 2e 20 20 | 41 6e 64 20 73 6f 0d 6f |ecute. |And so.o|
|00001430| 6e 2e 0d 20 0d 0d 45 76 | 65 6e 74 20 61 74 74 72 |n.. ..Ev|ent attr|
|00001440| 69 62 75 74 65 73 0d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ibutes.-|--------|
|00001450| 2d 2d 2d 2d 2d 2d 2d 0d | 20 0d 41 70 70 6c 65 20 |-------.| .Apple |
|00001460| 65 76 65 6e 74 73 20 63 | 6f 6d 65 20 61 6c 6f 6e |events c|ome alon|
|00001470| 67 20 77 69 74 68 20 6d | 6f 72 65 20 74 68 61 6e |g with m|ore than|
|00001480| 20 6a 75 73 74 20 61 6e | 20 61 64 64 72 65 73 73 | just an| address|
|00001490| 2c 20 61 20 76 65 72 62 | 2c 20 61 6e 64 20 70 69 |, a verb|, and pi|
|000014a0| 65 63 65 73 0d 6f 66 20 | 64 61 74 61 2e 20 20 54 |eces.of |data. T|
|000014b0| 68 65 79 20 61 6c 73 6f | 20 63 6f 6d 65 20 77 69 |hey also| come wi|
|000014c0| 74 68 20 6d 6f 64 69 66 | 69 65 72 73 2c 20 6f 72 |th modif|iers, or|
|000014d0| 20 22 61 74 74 72 69 62 | 75 74 65 73 22 2c 20 77 | "attrib|utes", w|
|000014e0| 68 69 63 68 20 79 6f 75 | 20 63 61 6e 0d 74 68 69 |hich you| can.thi|
|000014f0| 6e 6b 20 6f 66 20 61 73 | 20 22 73 70 65 63 69 61 |nk of as| "specia|
|00001500| 6c 20 68 61 6e 64 6c 69 | 6e 67 20 69 6e 73 74 72 |l handli|ng instr|
|00001510| 75 63 74 69 6f 6e 73 22 | 2e 20 20 54 68 65 20 63 |uctions"|. The c|
|00001520| 6c 61 73 73 2c 20 69 64 | 2c 20 61 6e 64 20 73 65 |lass, id|, and se|
|00001530| 6e 64 65 72 20 61 72 65 | 0d 61 6c 6c 20 61 74 74 |nder are|.all att|
|00001540| 72 69 62 75 74 65 73 20 | 61 6c 73 6f 2c 20 62 75 |ributes |also, bu|
|00001550| 74 20 48 79 70 65 72 43 | 61 72 64 20 67 69 76 65 |t HyperC|ard give|
|00001560| 73 20 79 6f 75 20 74 68 | 65 73 65 20 61 75 74 6f |s you th|ese auto|
|00001570| 6d 61 74 69 63 61 6c 6c | 79 20 61 73 0d 70 61 72 |maticall|y as.par|
|00001580| 61 6d 65 74 65 72 73 20 | 74 6f 20 74 68 65 20 61 |ameters |to the a|
|00001590| 70 70 6c 65 45 76 65 6e | 74 20 6d 65 73 73 61 67 |ppleEven|t messag|
|000015a0| 65 2e 20 20 54 68 65 20 | 74 69 6d 65 6f 75 74 20 |e. The |timeout |
|000015b0| 76 61 6c 75 65 2c 20 74 | 68 65 20 74 72 61 6e 73 |value, t|he trans|
|000015c0| 61 63 74 69 6f 6e 0d 69 | 64 2c 20 61 6e 64 20 74 |action.i|d, and t|
|000015d0| 68 65 20 72 65 74 75 72 | 6e 20 69 64 20 2d 2d 20 |he retur|n id -- |
|000015e0| 74 68 65 20 69 64 65 6e | 74 69 66 69 65 72 20 79 |the iden|tifier y|
|000015f0| 6f 75 20 70 75 74 20 6f | 6e 20 74 68 65 20 72 65 |ou put o|n the re|
|00001600| 70 6c 79 20 73 6f 20 74 | 68 61 74 20 74 68 65 0d |ply so t|hat the.|
|00001610| 73 65 6e 64 65 72 20 6b | 6e 6f 77 73 2c 20 77 68 |sender k|nows, wh|
|00001620| 65 6e 20 68 69 73 20 77 | 69 6c 64 20 70 6c 75 6d |en his w|ild plum|
|00001630| 20 61 72 72 69 76 65 73 | 2c 20 77 68 69 63 68 20 | arrives|, which |
|00001640| 70 61 63 6b 61 67 65 20 | 79 6f 75 20 6d 61 64 65 |package |you made|
|00001650| 20 69 74 20 6f 75 74 20 | 6f 66 0d 2d 2d 20 61 72 | it out |of.-- ar|
|00001660| 65 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 61 74 74 |e additi|onal att|
|00001670| 72 69 62 75 74 65 73 2e | 20 20 49 66 20 79 6f 75 |ributes.| If you|
|00001680| 20 6e 65 65 64 20 74 6f | 20 6c 6f 6f 6b 20 61 74 | need to| look at|
|00001690| 20 74 68 65 73 65 2c 20 | 74 68 65 20 22 72 65 71 | these, |the "req|
|000016a0| 75 65 73 74 22 0d 63 6f | 6d 6d 61 6e 64 20 77 69 |uest".co|mmand wi|
|000016b0| 6c 6c 20 6c 65 74 20 79 | 6f 75 2e 0d 20 0d 59 6f |ll let y|ou.. .Yo|
|000016c0| 75 20 63 61 6e 20 67 65 | 74 20 74 68 65 20 72 65 |u can ge|t the re|
|000016d0| 74 75 72 6e 20 69 64 2c | 0d 20 0d 20 20 20 72 65 |turn id,|. . re|
|000016e0| 71 75 65 73 74 20 61 70 | 70 6c 65 45 76 65 6e 74 |quest ap|pleEvent|
|000016f0| 20 72 65 74 75 72 6e 20 | 69 64 0d 20 20 20 72 65 | return |id. re|
|00001700| 71 75 65 73 74 20 61 70 | 70 6c 65 45 76 65 6e 74 |quest ap|pleEvent|
|00001710| 20 64 61 74 61 20 6f 66 | 20 6b 65 79 77 6f 72 64 | data of| keyword|
|00001720| 20 22 72 74 69 64 22 20 | 20 2d 2d 20 73 61 6d 65 | "rtid" | -- same|
|00001730| 20 74 68 69 6e 67 2c 20 | 6f 6e 6c 79 20 75 67 6c | thing, |only ugl|
|00001740| 69 65 72 0d 20 0d 74 68 | 65 20 74 69 6d 65 6f 75 |ier. .th|e timeou|
|00001750| 74 20 76 61 6c 75 65 2c | 0d 20 0d 20 20 20 72 65 |t value,|. . re|
|00001760| 71 75 65 73 74 20 61 70 | 70 6c 65 45 76 65 6e 74 |quest ap|pleEvent|
|00001770| 20 64 61 74 61 20 6f 66 | 20 6b 65 79 77 6f 72 64 | data of| keyword|
|00001780| 20 22 74 69 6d 6f 22 0d | 20 0d 74 68 65 20 74 72 | "timo".| .the tr|
|00001790| 61 6e 73 61 63 74 69 6f | 6e 20 69 64 2c 0d 20 0d |ansactio|n id,. .|
|000017a0| 20 20 20 72 65 71 75 65 | 73 74 20 61 70 70 6c 65 | reque|st apple|
|000017b0| 45 76 65 6e 74 20 64 61 | 74 61 20 6f 66 20 6b 65 |Event da|ta of ke|
|000017c0| 79 77 6f 72 64 20 22 74 | 72 61 6e 22 0d 20 0d 61 |yword "t|ran". .a|
|000017d0| 6e 64 20 77 68 61 74 65 | 76 65 72 20 65 6c 73 65 |nd whate|ver else|
|000017e0| 20 79 6f 75 20 74 68 69 | 6e 6b 20 79 6f 75 20 6e | you thi|nk you n|
|000017f0| 65 65 64 2c 20 61 73 20 | 6c 6f 6e 67 20 61 73 20 |eed, as |long as |
|00001800| 79 6f 75 20 6b 6e 6f 77 | 20 69 74 73 20 6b 65 79 |you know| its key|
|00001810| 77 6f 72 64 2e 20 20 57 | 65 0d 68 61 76 65 20 73 |word. W|e.have s|
|00001820| 70 65 63 69 61 6c 20 66 | 6f 72 6d 73 20 6f 66 20 |pecial f|orms of |
|00001830| 74 68 65 20 72 65 71 75 | 65 73 74 20 63 6f 6d 6d |the requ|est comm|
|00001840| 61 6e 64 20 66 6f 72 20 | 74 68 65 20 63 6c 61 73 |and for |the clas|
|00001850| 73 2c 20 69 64 2c 20 73 | 65 6e 64 65 72 2c 20 64 |s, id, s|ender, d|
|00001860| 69 72 65 63 74 0d 6f 62 | 6a 65 63 74 2c 20 61 6e |irect.ob|ject, an|
|00001870| 64 20 72 65 74 75 72 6e | 20 69 64 20 2d 2d 20 66 |d return| id -- f|
|00001880| 6f 72 20 65 76 65 72 79 | 74 68 69 6e 67 20 65 6c |or every|thing el|
|00001890| 73 65 2c 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |se, you |have to |
|000018a0| 74 65 6c 6c 20 48 79 70 | 65 72 43 61 72 64 0d 77 |tell Hyp|erCard.w|
|000018b0| 68 61 74 20 79 6f 75 20 | 77 61 6e 74 20 62 79 20 |hat you |want by |
|000018c0| 6b 65 79 77 6f 72 64 2e | 0d 20 0d 20 20 20 72 65 |keyword.|. . re|
|000018d0| 71 75 65 73 74 20 61 70 | 70 6c 65 45 76 65 6e 74 |quest ap|pleEvent|
|000018e0| 20 63 6c 61 73 73 20 20 | 20 2d 2d 20 67 69 76 65 | class | -- give|
|000018f0| 73 20 79 6f 75 20 74 68 | 65 20 63 6c 61 73 73 20 |s you th|e class |
|00001900| 61 74 74 72 69 62 75 74 | 65 0d 20 20 20 72 65 71 |attribut|e. req|
|00001910| 75 65 73 74 20 61 70 70 | 6c 65 45 76 65 6e 74 20 |uest app|leEvent |
|00001920| 69 64 20 20 20 20 20 20 | 2d 2d 20 67 69 76 65 73 |id |-- gives|
|00001930| 20 79 6f 75 20 74 68 65 | 20 69 64 20 61 74 74 72 | you the| id attr|
|00001940| 69 62 75 74 65 0d 20 20 | 20 72 65 71 75 65 73 74 |ibute. | request|
|00001950| 20 61 70 70 6c 65 45 76 | 65 6e 74 20 73 65 6e 64 | appleEv|ent send|
|00001960| 65 72 20 20 2d 2d 20 67 | 69 76 65 73 20 79 6f 75 |er -- g|ives you|
|00001970| 20 74 68 65 20 73 65 6e | 64 65 72 20 61 74 74 72 | the sen|der attr|
|00001980| 69 62 75 74 65 0d 20 20 | 20 72 65 71 75 65 73 74 |ibute. | request|
|00001990| 20 61 70 70 6c 65 45 76 | 65 6e 74 20 64 61 74 61 | appleEv|ent data|
|000019a0| 20 20 20 20 2d 2d 20 67 | 69 76 65 73 20 79 6f 75 | -- g|ives you|
|000019b0| 20 74 68 65 20 64 69 72 | 65 63 74 20 6f 62 6a 65 | the dir|ect obje|
|000019c0| 63 74 20 70 61 72 61 6d | 65 74 65 72 0d 20 20 20 |ct param|eter. |
|000019d0| 72 65 71 75 65 73 74 20 | 61 70 70 6c 65 45 76 65 |request |appleEve|
|000019e0| 6e 74 20 72 65 74 75 72 | 6e 20 69 64 20 20 20 2d |nt retur|n id -|
|000019f0| 2d 20 67 69 76 65 73 20 | 79 6f 75 20 74 68 65 20 |- gives |you the |
|00001a00| 72 65 74 75 72 6e 20 69 | 64 20 61 74 74 72 69 62 |return i|d attrib|
|00001a10| 75 74 65 0d 0d 0d 4b 65 | 76 69 6e 20 43 61 6c 68 |ute...Ke|vin Calh|
|00001a20| 6f 75 6e 0d 6a 6b 63 40 | 61 70 70 6c 65 2e 63 6f |oun.jkc@|apple.co|
|00001a30| 6d 0d 20 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |m. .****|*******.|
|00001a40| 0d 48 79 70 65 72 43 61 | 72 64 20 32 2e 31 20 52 |.HyperCa|rd 2.1 R|
|00001a50| 65 6c 65 61 73 65 20 4e | 6f 74 65 73 20 66 6f 72 |elease N|otes for|
|00001a60| 20 44 65 76 65 6c 6f 70 | 65 72 73 0d 44 61 74 65 | Develop|ers.Date|
|00001a70| 3a 20 32 33 20 4d 61 79 | 20 39 31 20 32 32 3a 35 |: 23 May| 91 22:5|
|00001a80| 30 3a 30 35 20 47 4d 54 | 0d 4f 72 67 61 6e 69 7a |0:05 GMT|.Organiz|
|00001a90| 61 74 69 6f 6e 3a 20 41 | 70 70 6c 65 20 43 6f 6d |ation: A|pple Com|
|00001aa0| 70 75 74 65 72 20 49 6e | 63 2c 20 43 75 70 65 72 |puter In|c, Cuper|
|00001ab0| 74 69 6e 6f 2c 20 43 41 | 0d 0d 0d 48 79 70 65 72 |tino, CA|...Hyper|
|00001ac0| 43 61 72 64 20 32 2e 31 | 20 52 65 6c 65 61 73 65 |Card 2.1| Release|
|00001ad0| 20 4e 6f 74 65 73 0d 0d | 0d 4f 76 65 72 76 69 65 | Notes..|.Overvie|
|00001ae0| 77 20 6f 66 20 74 68 69 | 73 20 52 65 6c 65 61 73 |w of thi|s Releas|
|00001af0| 65 0d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |e.------|--------|
|00001b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 48 79 70 65 |--------|--..Hype|
|00001b10| 72 43 61 72 64 20 32 2e | 31 20 69 73 20 74 68 65 |rCard 2.|1 is the|
|00001b20| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 48 79 70 65 | version| of Hype|
|00001b30| 72 43 61 72 64 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |rCard re|commende|
|00001b40| 64 20 66 6f 72 20 75 73 | 65 20 77 69 74 68 20 53 |d for us|e with S|
|00001b50| 79 73 74 65 6d 20 37 2e | 30 2e 0d 49 74 20 69 73 |ystem 7.|0..It is|
|00001b60| 20 61 6c 73 6f 20 63 6f | 6d 70 61 74 69 62 6c 65 | also co|mpatible|
|00001b70| 20 77 69 74 68 20 53 79 | 73 74 65 6d 20 36 2e 30 | with Sy|stem 6.0|
|00001b80| 2e 35 20 61 6e 64 20 53 | 79 73 74 65 6d 20 36 2e |.5 and S|ystem 6.|
|00001b90| 30 2e 37 2e 0d 0d 0d 52 | 65 76 69 73 69 6f 6e 73 |0.7....R|evisions|
|00001ba0| 20 66 6f 72 20 53 75 70 | 70 6f 72 74 20 6f 66 20 | for Sup|port of |
|00001bb0| 53 79 73 74 65 6d 20 37 | 2e 30 20 46 65 61 74 75 |System 7|.0 Featu|
|00001bc0| 72 65 73 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |res.----|--------|
|00001bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001bf0| 0d 0d 54 68 65 73 65 20 | 72 65 76 69 73 69 6f 6e |..These |revision|
|00001c00| 73 20 61 72 65 20 67 72 | 6f 75 70 65 64 20 62 79 |s are gr|ouped by|
|00001c10| 20 74 68 65 69 72 20 61 | 73 73 6f 63 69 61 74 65 | their a|ssociate|
|00001c20| 64 20 54 6f 6f 6c 62 6f | 78 20 4d 61 6e 61 67 65 |d Toolbo|x Manage|
|00001c30| 72 2e 0d 0d 0d 41 6c 69 | 61 73 20 4d 61 6e 61 67 |r....Ali|as Manag|
|00001c40| 65 72 0d 0d 20 20 20 20 | 57 68 65 6e 20 74 68 65 |er.. |When the|
|00001c50| 20 41 6c 69 61 73 20 4d | 61 6e 61 67 65 72 20 69 | Alias M|anager i|
|00001c60| 73 20 70 72 65 73 65 6e | 74 2c 20 48 79 70 65 72 |s presen|t, Hyper|
|00001c70| 43 61 72 64 20 32 2e 31 | 20 77 69 6c 6c 20 63 61 |Card 2.1| will ca|
|00001c80| 6c 6c 20 69 74 20 74 6f | 20 72 65 73 6f 6c 76 65 |ll it to| resolve|
|00001c90| 0d 61 6c 69 61 73 20 66 | 69 6c 65 73 2e 20 20 54 |.alias f|iles. T|
|00001ca0| 68 65 72 65 66 6f 72 65 | 2c 20 74 68 65 20 66 6f |herefore|, the fo|
|00001cb0| 6c 6c 6f 77 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |llowing |commands|
|00001cc0| 20 77 69 6c 6c 20 77 6f | 72 6b 20 70 72 6f 70 65 | will wo|rk prope|
|00001cd0| 72 6c 79 20 77 69 74 68 | 20 61 6c 69 61 73 0d 66 |rly with| alias.f|
|00001ce0| 69 6c 65 73 2e 0d 0d 20 | 20 20 20 67 6f 20 74 6f |iles... | go to|
|00001cf0| 20 73 74 61 63 6b 20 3c | 61 6c 69 61 73 20 66 69 | stack <|alias fi|
|00001d00| 6c 65 3e 0d 20 20 20 20 | 6f 70 65 6e 20 3c 61 6c |le>. |open <al|
|00001d10| 69 61 73 20 66 69 6c 65 | 3e 20 77 69 74 68 20 3c |ias file|> with <|
|00001d20| 61 6c 69 61 73 20 66 69 | 6c 65 3e 0d 20 20 20 20 |alias fi|le>. |
|00001d30| 6f 70 65 6e 20 66 69 6c | 65 20 3c 61 6c 69 61 73 |open fil|e <alias|
|00001d40| 20 66 69 6c 65 3e 0d 20 | 20 20 20 77 72 69 74 65 | file>. | write|
|00001d50| 20 74 6f 20 66 69 6c 65 | 20 3c 61 6c 69 61 73 20 | to file| <alias |
|00001d60| 66 69 6c 65 3e 0d 20 20 | 20 20 72 65 61 64 20 66 |file>. | read f|
|00001d70| 72 6f 6d 20 66 69 6c 65 | 20 3c 61 6c 69 61 73 20 |rom file| <alias |
|00001d80| 66 69 6c 65 3e 0d 20 20 | 20 20 70 69 63 74 75 72 |file>. | pictur|
|00001d90| 65 20 3c 61 6c 69 61 73 | 20 66 69 6c 65 3e 0d 0d |e <alias| file>..|
|00001da0| 20 20 20 20 54 68 65 20 | 58 43 4d 44 20 63 61 6c | The |XCMD cal|
|00001db0| 6c 62 61 63 6b 20 47 65 | 74 46 69 6c 65 50 61 74 |lback Ge|tFilePat|
|00001dc0| 68 20 77 69 6c 6c 20 61 | 6c 73 6f 20 72 65 73 6f |h will a|lso reso|
|00001dd0| 6c 76 65 20 61 6c 69 61 | 73 20 66 69 6c 65 73 2e |lve alia|s files.|
|00001de0| 20 54 68 65 72 65 66 6f | 72 65 2c 0d 58 43 4d 44 | Therefo|re,.XCMD|
|00001df0| 73 20 74 68 61 74 20 75 | 73 65 20 74 68 69 73 20 |s that u|se this |
|00001e00| 63 61 6c 6c 62 61 63 6b | 20 74 6f 20 6c 6f 63 61 |callback| to loca|
|00001e10| 74 65 20 66 69 6c 65 73 | 20 77 69 6c 6c 20 72 65 |te files| will re|
|00001e20| 71 75 69 72 65 20 6e 6f | 20 72 65 76 69 73 69 6f |quire no| revisio|
|00001e30| 6e 20 74 6f 20 77 6f 72 | 6b 0d 77 69 74 68 20 61 |n to wor|k.with a|
|00001e40| 6c 69 61 73 20 66 69 6c | 65 73 2e 20 20 28 54 68 |lias fil|es. (Th|
|00001e50| 65 20 50 69 63 74 75 72 | 65 20 58 43 4d 44 20 69 |e Pictur|e XCMD i|
|00001e60| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 2e 29 0d 0d |s an exa|mple.)..|
|00001e70| 20 20 20 20 49 6e 20 61 | 64 64 69 74 69 6f 6e 2c | In a|ddition,|
|00001e80| 20 69 66 20 48 79 70 65 | 72 43 61 72 64 20 66 69 | if Hype|rCard fi|
|00001e90| 6e 64 73 20 61 6e 20 61 | 6c 69 61 73 20 66 69 6c |nds an a|lias fil|
|00001ea0| 65 20 77 68 65 6e 20 6c | 6f 6f 6b 69 6e 67 20 66 |e when l|ooking f|
|00001eb0| 6f 72 20 74 68 65 20 48 | 6f 6d 65 0d 73 74 61 63 |or the H|ome.stac|
|00001ec0| 6b 20 6f 6e 20 73 74 61 | 72 74 75 70 2c 20 74 68 |k on sta|rtup, th|
|00001ed0| 65 20 61 6c 69 61 73 20 | 66 69 6c 65 20 77 69 6c |e alias |file wil|
|00001ee0| 6c 20 62 65 20 72 65 73 | 6f 6c 76 65 64 2e 0d 0d |l be res|olved...|
|00001ef0| 0d 41 70 70 6c 65 20 45 | 76 65 6e 74 20 4d 61 6e |.Apple E|vent Man|
|00001f00| 61 67 65 72 0d 0d 20 20 | 20 20 57 68 65 6e 20 74 |ager.. | When t|
|00001f10| 68 65 20 41 70 70 6c 65 | 45 76 65 6e 74 20 4d 61 |he Apple|Event Ma|
|00001f20| 6e 61 67 65 72 20 69 73 | 20 70 72 65 73 65 6e 74 |nager is| present|
|00001f30| 2c 20 48 79 70 65 72 43 | 61 72 64 20 32 2e 31 20 |, HyperC|ard 2.1 |
|00001f40| 77 69 6c 6c 20 75 73 65 | 20 69 74 20 74 6f 20 70 |will use| it to p|
|00001f50| 72 6f 63 65 73 73 0d 61 | 6e 64 20 73 65 6e 64 20 |rocess.a|nd send |
|00001f60| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 2e 20 20 48 |Apple ev|ents. H|
|00001f70| 79 70 65 72 43 61 72 64 | 20 77 69 6c 6c 20 72 65 |yperCard| will re|
|00001f80| 63 6f 67 6e 69 7a 65 20 | 61 6e 64 20 68 61 6e 64 |cognize |and hand|
|00001f90| 6c 65 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |le the s|tandard |
|00001fa0| 41 70 70 6c 65 0d 65 76 | 65 6e 74 73 20 66 6f 72 |Apple.ev|ents for|
|00001fb0| 20 6f 70 65 6e 69 6e 67 | 20 64 6f 63 75 6d 65 6e | opening| documen|
|00001fc0| 74 73 2c 20 70 72 69 6e | 74 69 6e 67 20 64 6f 63 |ts, prin|ting doc|
|00001fd0| 75 6d 65 6e 74 73 2c 20 | 71 75 69 74 74 69 6e 67 |uments, |quitting|
|00001fe0| 2c 20 65 78 65 63 75 74 | 69 6e 67 20 61 20 73 63 |, execut|ing a sc|
|00001ff0| 72 69 70 74 2c 0d 61 6e | 64 20 65 76 61 6c 75 61 |ript,.an|d evalua|
|00002000| 74 69 6e 67 20 61 6e 20 | 65 78 70 72 65 73 73 69 |ting an |expressi|
|00002010| 6f 6e 2e 0d 0d 20 20 20 | 20 49 6e 20 61 64 64 69 |on... | In addi|
|00002020| 74 69 6f 6e 2c 20 73 65 | 76 65 72 61 6c 20 6f 66 |tion, se|veral of|
|00002030| 20 48 79 70 65 72 54 61 | 6c 6b 27 73 20 62 75 69 | HyperTa|lk's bui|
|00002040| 6c 74 2d 69 6e 20 63 6f | 6d 6d 61 6e 64 73 20 77 |lt-in co|mmands w|
|00002050| 69 6c 6c 20 68 61 76 65 | 20 74 68 65 20 61 64 64 |ill have| the add|
|00002060| 65 64 0d 61 62 69 6c 69 | 74 79 20 74 6f 20 73 65 |ed.abili|ty to se|
|00002070| 6e 64 20 73 70 65 63 69 | 66 69 63 20 41 70 70 6c |nd speci|fic Appl|
|00002080| 65 20 65 76 65 6e 74 73 | 20 74 6f 20 6f 74 68 65 |e events| to othe|
|00002090| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 0d |r applic|ations..|
|000020a0| 0d 20 20 20 20 45 76 65 | 6e 74 20 63 6c 61 73 73 |. Eve|nt class|
|000020b0| 20 20 45 76 65 6e 74 20 | 49 44 20 20 20 20 20 20 | Event |ID |
|000020c0| 20 52 65 6c 61 74 65 64 | 20 48 79 70 65 72 54 61 | Related| HyperTa|
|000020d0| 6c 6b 20 63 6f 6d 6d 61 | 6e 64 0d 20 20 20 20 2d |lk comma|nd. -|
|000020e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 20 2d 2d 2d 2d |--------|-- ----|
|000020f0| 2d 2d 2d 2d 20 20 20 20 | 20 20 20 2d 2d 2d 2d 2d |---- | -----|
|00002100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002110| 2d 2d 2d 2d 0d 20 20 20 | 20 27 61 65 76 74 27 20 |----. | 'aevt' |
|00002120| 20 20 20 20 20 20 27 6f | 61 70 70 27 20 20 20 20 | 'o|app' |
|00002130| 20 20 20 20 20 6f 70 65 | 6e 20 3c 61 70 70 6c 69 | ope|n <appli|
|00002140| 63 61 74 69 6f 6e 3e 0d | 20 20 20 20 27 61 65 76 |cation>.| 'aev|
|00002150| 74 27 20 20 20 20 20 20 | 20 27 6f 64 6f 63 27 20 |t' | 'odoc' |
|00002160| 20 20 20 20 20 20 20 20 | 6f 70 65 6e 20 3c 64 6f | |open <do|
|00002170| 63 75 6d 65 6e 74 3e 20 | 77 69 74 68 20 3c 61 70 |cument> |with <ap|
|00002180| 70 6c 69 63 61 74 69 6f | 6e 3e 0d 20 20 20 20 27 |plicatio|n>. '|
|00002190| 61 65 76 74 27 20 20 20 | 20 20 20 20 27 70 64 6f |aevt' | 'pdo|
|000021a0| 63 27 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |c' | print|
|000021b0| 20 3c 64 6f 63 75 6d 65 | 6e 74 3e 20 77 69 74 68 | <docume|nt> with|
|000021c0| 20 3c 61 70 70 6c 69 63 | 61 74 69 6f 6e 3e 0d 20 | <applic|ation>. |
|000021d0| 20 20 20 27 61 65 76 74 | 27 20 20 20 20 20 20 20 | 'aevt|' |
|000021e0| 27 71 75 69 74 27 20 20 | 20 20 20 20 20 20 20 63 |'quit' | c|
|000021f0| 6c 6f 73 65 20 3c 61 70 | 70 6c 69 63 61 74 69 6f |lose <ap|plicatio|
|00002200| 6e 3e 0d 20 20 20 20 27 | 61 65 76 74 27 20 20 20 |n>. '|aevt' |
|00002210| 20 20 20 20 27 63 6c 6f | 73 27 20 20 20 20 20 20 | 'clo|s' |
|00002220| 20 20 20 63 6c 6f 73 65 | 20 3c 64 6f 63 75 6d 65 | close| <docume|
|00002230| 6e 74 3e 20 77 69 74 68 | 20 3c 61 70 70 6c 69 63 |nt> with| <applic|
|00002240| 61 74 69 6f 6e 3e 0d 20 | 20 20 20 27 6d 69 73 63 |ation>. | 'misc|
|00002250| 27 20 20 20 20 20 20 20 | 27 64 6f 73 63 27 20 20 |' |'dosc' |
|00002260| 20 20 20 20 20 20 20 73 | 65 6e 64 20 3c 65 78 70 | s|end <exp|
|00002270| 72 3e 20 74 6f 20 70 72 | 6f 67 72 61 6d 20 3c 70 |r> to pr|ogram <p|
|00002280| 72 6f 67 72 61 6d 45 78 | 70 72 3e 0d 20 20 20 20 |rogramEx|pr>. |
|00002290| 27 6d 69 73 63 27 20 20 | 20 20 20 20 20 27 65 76 |'misc' | 'ev|
|000022a0| 61 6c 27 20 20 20 20 20 | 20 20 20 20 72 65 71 75 |al' | requ|
|000022b0| 65 73 74 20 3c 65 78 70 | 72 3e 20 6f 66 20 70 72 |est <exp|r> of pr|
|000022c0| 6f 67 72 61 6d 20 3c 70 | 72 6f 67 72 61 6d 45 78 |ogram <p|rogramEx|
|000022d0| 70 72 3e 0d 0d 20 20 20 | 20 49 66 20 79 6f 75 20 |pr>.. | If you |
|000022e0| 77 61 6e 74 20 74 6f 20 | 6c 61 75 6e 63 68 20 61 |want to |launch a|
|000022f0| 6e 6f 74 68 65 72 20 61 | 70 70 6c 69 63 61 74 69 |nother a|pplicati|
|00002300| 6f 6e 20 6f 72 20 6f 70 | 65 6e 20 61 20 64 6f 63 |on or op|en a doc|
|00002310| 75 6d 65 6e 74 20 77 69 | 74 68 20 61 6e 6f 74 68 |ument wi|th anoth|
|00002320| 65 72 0d 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |er.appli|cation, |
|00002330| 75 73 65 20 74 68 65 20 | 48 79 70 65 72 54 61 6c |use the |HyperTal|
|00002340| 6b 20 63 6f 6d 6d 61 6e | 64 20 22 6f 70 65 6e 22 |k comman|d "open"|
|00002350| 2e 20 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |. If yo|u want t|
|00002360| 6f 20 70 72 69 6e 74 20 | 61 20 64 6f 63 75 6d 65 |o print |a docume|
|00002370| 6e 74 0d 77 69 74 68 20 | 61 6e 6f 74 68 65 72 20 |nt.with |another |
|00002380| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 75 73 65 |applicat|ion, use|
|00002390| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 22 70 72 | the com|mand "pr|
|000023a0| 69 6e 74 22 2e 20 20 49 | 66 20 79 6f 75 20 77 61 |int". I|f you wa|
|000023b0| 6e 74 20 74 6f 20 63 6c | 6f 73 65 20 61 0d 64 6f |nt to cl|ose a.do|
|000023c0| 63 75 6d 65 6e 74 20 69 | 6e 20 61 6e 6f 74 68 65 |cument i|n anothe|
|000023d0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 72 |r applic|ation or|
|000023e0| 20 71 75 69 74 20 61 6e | 6f 74 68 65 72 20 61 70 | quit an|other ap|
|000023f0| 70 6c 69 63 61 74 69 6f | 6e 2c 20 75 73 65 20 74 |plicatio|n, use t|
|00002400| 68 65 20 63 6f 6d 6d 61 | 6e 64 0d 22 63 6c 6f 73 |he comma|nd."clos|
|00002410| 65 22 2e 20 20 49 66 20 | 79 6f 75 20 77 61 6e 74 |e". If |you want|
|00002420| 20 74 6f 20 65 78 65 63 | 75 74 65 20 61 20 73 63 | to exec|ute a sc|
|00002430| 72 69 70 74 20 6f 72 20 | 6d 61 63 72 6f 20 69 6e |ript or |macro in|
|00002440| 20 61 6e 6f 74 68 65 72 | 20 61 70 70 6c 69 63 61 | another| applica|
|00002450| 74 69 6f 6e 2c 20 75 73 | 65 0d 74 68 65 20 48 79 |tion, us|e.the Hy|
|00002460| 70 65 72 54 61 6c 6b 20 | 63 6f 6d 6d 61 6e 64 20 |perTalk |command |
|00002470| 22 73 65 6e 64 22 2e 20 | 20 49 66 20 79 6f 75 20 |"send". | If you |
|00002480| 77 61 6e 74 20 74 6f 20 | 65 76 61 6c 75 61 74 65 |want to |evaluate|
|00002490| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 | an expr|ession i|
|000024a0| 6e 20 61 6e 6f 74 68 65 | 72 0d 61 70 70 6c 69 63 |n anothe|r.applic|
|000024b0| 61 74 69 6f 6e 2c 20 75 | 73 65 20 74 68 65 20 63 |ation, u|se the c|
|000024c0| 6f 6d 6d 61 6e 64 20 22 | 72 65 71 75 65 73 74 22 |ommand "|request"|
|000024d0| 2e 0d 0d 20 20 20 20 50 | 6c 65 61 73 65 20 6e 6f |... P|lease no|
|000024e0| 74 65 20 74 68 61 74 20 | 61 6d 6f 6e 67 20 74 68 |te that |among th|
|000024f0| 65 73 65 20 41 70 70 6c | 65 20 65 76 65 6e 74 73 |ese Appl|e events|
|00002500| 2c 20 6f 6e 6c 79 20 27 | 6f 61 70 70 27 2c 20 27 |, only '|oapp', '|
|00002510| 6f 64 6f 63 27 2c 20 27 | 70 64 6f 63 27 2c 20 61 |odoc', '|pdoc', a|
|00002520| 6e 64 0d 27 71 75 69 74 | 27 20 61 72 65 20 75 6e |nd.'quit|' are un|
|00002530| 69 76 65 72 73 61 6c 6c | 79 20 73 75 70 70 6f 72 |iversall|y suppor|
|00002540| 74 65 64 2e 20 20 41 6c | 6c 20 6f 74 68 65 72 20 |ted. Al|l other |
|00002550| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 20 74 68 61 |Apple ev|ents tha|
|00002560| 74 20 48 79 70 65 72 43 | 61 72 64 20 63 61 6e 0d |t HyperC|ard can.|
|00002570| 73 65 6e 64 20 77 69 6c | 6c 20 62 65 20 65 66 66 |send wil|l be eff|
|00002580| 65 63 74 69 76 65 20 6f | 6e 6c 79 20 69 66 20 74 |ective o|nly if t|
|00002590| 68 65 20 74 61 72 67 65 | 74 20 61 70 70 6c 69 63 |he targe|t applic|
|000025a0| 61 74 69 6f 6e 20 69 6e | 63 6c 75 64 65 73 20 73 |ation in|cludes s|
|000025b0| 70 65 63 69 66 69 63 20 | 73 75 70 70 6f 72 74 0d |pecific |support.|
|000025c0| 66 6f 72 20 74 68 65 6d | 2e 20 46 6f 72 20 65 78 |for them|. For ex|
|000025d0| 61 6d 70 6c 65 2c 0d 0d | 20 20 20 20 63 6c 6f 73 |ample,..| clos|
|000025e0| 65 20 22 4d 79 20 45 78 | 70 65 6e 73 65 20 52 65 |e "My Ex|pense Re|
|000025f0| 70 6f 72 74 22 20 77 69 | 74 68 20 22 46 61 62 43 |port" wi|th "FabC|
|00002600| 61 6c 63 22 0d 0d 77 69 | 6c 6c 20 77 6f 72 6b 20 |alc"..wi|ll work |
|00002610| 70 72 6f 70 65 72 6c 79 | 20 6f 6e 6c 79 20 69 66 |properly| only if|
|00002620| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00002630| 20 46 61 62 43 61 6c 63 | 20 73 75 70 70 6f 72 74 | FabCalc| support|
|00002640| 73 20 74 68 65 20 27 63 | 6c 6f 73 27 20 41 70 70 |s the 'c|los' App|
|00002650| 6c 65 0d 65 76 65 6e 74 | 2e 0d 0d 20 20 20 20 54 |le.event|... T|
|00002660| 68 65 20 22 6f 70 65 6e | 22 2c 20 22 70 72 69 6e |he "open|", "prin|
|00002670| 74 22 2c 20 61 6e 64 20 | 22 63 6c 6f 73 65 22 20 |t", and |"close" |
|00002680| 63 6f 6d 6d 61 6e 64 73 | 20 77 69 6c 6c 20 77 6f |commands| will wo|
|00002690| 72 6b 20 6f 6e 6c 79 20 | 77 69 74 68 20 61 70 70 |rk only |with app|
|000026a0| 6c 69 63 61 74 69 6f 6e | 73 0d 74 68 61 74 20 72 |lication|s.that r|
|000026b0| 65 73 69 64 65 20 6f 6e | 20 74 68 65 20 73 61 6d |eside on| the sam|
|000026c0| 65 20 6d 61 63 68 69 6e | 65 20 61 73 20 48 79 70 |e machin|e as Hyp|
|000026d0| 65 72 43 61 72 64 2e 20 | 20 54 68 65 20 22 73 65 |erCard. | The "se|
|000026e0| 6e 64 22 20 61 6e 64 20 | 22 72 65 71 75 65 73 74 |nd" and |"request|
|000026f0| 22 20 63 6f 6d 6d 61 6e | 64 73 0d 77 69 6c 6c 20 |" comman|ds.will |
|00002700| 77 6f 72 6b 20 77 69 74 | 68 20 61 6e 79 20 6c 69 |work wit|h any li|
|00002710| 6e 6b 61 62 6c 65 20 70 | 72 6f 67 72 61 6d 20 72 |nkable p|rogram r|
|00002720| 75 6e 6e 69 6e 67 20 6f | 6e 20 74 68 65 20 6e 65 |unning o|n the ne|
|00002730| 74 77 6f 72 6b 2e 20 53 | 65 65 20 22 44 65 74 65 |twork. S|ee "Dete|
|00002740| 72 6d 69 6e 69 6e 67 20 | 74 68 65 0d 54 61 72 67 |rmining |the.Targ|
|00002750| 65 74 20 50 72 6f 67 72 | 61 6d 22 2c 20 62 65 6c |et Progr|am", bel|
|00002760| 6f 77 2e 0d 0d 53 65 6e | 64 69 6e 67 20 73 63 72 |ow...Sen|ding scr|
|00002770| 69 70 74 73 20 74 6f 20 | 6f 74 68 65 72 20 70 72 |ipts to |other pr|
|00002780| 6f 67 72 61 6d 73 0d 0d | 20 20 20 20 54 68 65 20 |ograms..| The |
|00002790| 73 65 6e 64 20 63 6f 6d | 6d 61 6e 64 20 69 6e 20 |send com|mand in |
|000027a0| 48 79 70 65 72 54 61 6c | 6b 20 77 69 6c 6c 20 73 |HyperTal|k will s|
|000027b0| 65 6e 64 20 61 20 22 64 | 6f 20 73 63 72 69 70 74 |end a "d|o script|
|000027c0| 22 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 66 72 |" Apple |event fr|
|000027d0| 6f 6d 0d 48 79 70 65 72 | 43 61 72 64 20 74 6f 20 |om.Hyper|Card to |
|000027e0| 61 6e 6f 74 68 65 72 20 | 61 70 70 6c 69 63 61 74 |another |applicat|
|000027f0| 69 6f 6e 20 72 75 6e 6e | 69 6e 67 20 72 65 6d 6f |ion runn|ing remo|
|00002800| 74 65 6c 79 2e 20 20 49 | 74 20 63 61 6e 20 62 65 |tely. I|t can be|
|00002810| 20 75 73 65 64 20 74 6f | 20 73 65 6e 64 20 61 0d | used to| send a.|
|00002820| 73 63 72 69 70 74 20 74 | 6f 20 61 6e 79 20 70 72 |script t|o any pr|
|00002830| 6f 67 72 61 6d 20 74 68 | 61 74 20 75 6e 64 65 72 |ogram th|at under|
|00002840| 73 74 61 6e 64 73 20 74 | 68 65 20 73 74 61 6e 64 |stands t|he stand|
|00002850| 61 72 64 20 27 64 6f 73 | 63 27 20 41 70 70 6c 65 |ard 'dos|c' Apple|
|00002860| 20 65 76 65 6e 74 2e 20 | 42 79 0d 64 65 66 61 75 | event. |By.defau|
|00002870| 6c 74 2c 20 48 79 70 65 | 72 43 61 72 64 20 77 61 |lt, Hype|rCard wa|
|00002880| 69 74 73 20 66 6f 72 20 | 61 20 72 65 70 6c 79 20 |its for |a reply |
|00002890| 66 72 6f 6d 20 74 68 65 | 20 74 61 72 67 65 74 20 |from the| target |
|000028a0| 70 72 6f 67 72 61 6d 20 | 62 65 66 6f 72 65 20 63 |program |before c|
|000028b0| 6f 6e 74 69 6e 75 69 6e | 67 2e 0d 48 6f 77 65 76 |ontinuin|g..Howev|
|000028c0| 65 72 2c 20 79 6f 75 20 | 63 61 6e 20 73 70 65 63 |er, you |can spec|
|000028d0| 69 66 79 20 74 68 61 74 | 20 79 6f 75 20 64 6f 6e |ify that| you don|
|000028e0| 27 74 20 77 61 6e 74 20 | 74 6f 20 77 61 69 74 20 |'t want |to wait |
|000028f0| 66 6f 72 20 61 20 72 65 | 70 6c 79 2e 0d 0d 20 20 |for a re|ply... |
|00002900| 20 20 45 78 61 6d 70 6c | 65 73 3a 0d 0d 20 20 20 | Exampl|es:.. |
|00002910| 20 73 65 6e 64 20 22 6d | 61 6b 65 20 77 61 76 65 | send "m|ake wave|
|00002920| 73 22 20 74 6f 20 70 72 | 6f 67 72 61 6d 20 22 44 |s" to pr|ogram "D|
|00002930| 65 20 41 6e 7a 61 20 36 | 2f 32 6e 64 3a 57 69 6c |e Anza 6|/2nd:Wil|
|00002940| 64 43 72 61 66 74 3a 48 | 79 70 65 72 43 61 72 64 |dCraft:H|yperCard|
|00002950| 22 0d 20 20 20 20 73 65 | 6e 64 20 22 62 75 69 6c |". se|nd "buil|
|00002960| 64 20 7b 70 72 6f 6a 65 | 63 74 7d 22 20 74 6f 20 |d {proje|ct}" to |
|00002970| 70 72 6f 67 72 61 6d 20 | 22 4d 50 57 20 53 68 65 |program |"MPW She|
|00002980| 6c 6c 22 20 77 69 74 68 | 6f 75 74 20 72 65 70 6c |ll" with|out repl|
|00002990| 79 0d 0d 45 76 61 6c 75 | 61 74 69 6e 67 20 65 78 |y..Evalu|ating ex|
|000029a0| 70 72 65 73 73 69 6f 6e | 73 20 69 6e 20 6f 74 68 |pression|s in oth|
|000029b0| 65 72 20 70 72 6f 67 72 | 61 6d 73 0d 0d 20 20 20 |er progr|ams.. |
|000029c0| 20 54 68 65 20 72 65 71 | 75 65 73 74 20 63 6f 6d | The req|uest com|
|000029d0| 6d 61 6e 64 20 69 6e 20 | 48 79 70 65 72 54 61 6c |mand in |HyperTal|
|000029e0| 6b 20 77 69 6c 6c 20 73 | 65 6e 64 20 61 6e 20 22 |k will s|end an "|
|000029f0| 65 76 61 6c 75 61 74 65 | 20 65 78 70 72 65 73 73 |evaluate| express|
|00002a00| 69 6f 6e 22 20 41 70 70 | 6c 65 0d 65 76 65 6e 74 |ion" App|le.event|
|00002a10| 20 66 72 6f 6d 20 48 79 | 70 65 72 43 61 72 64 20 | from Hy|perCard |
|00002a20| 74 6f 20 61 6e 6f 74 68 | 65 72 20 61 70 70 6c 69 |to anoth|er appli|
|00002a30| 63 61 74 69 6f 6e 20 72 | 75 6e 6e 69 6e 67 20 72 |cation r|unning r|
|00002a40| 65 6d 6f 74 65 6c 79 2e | 20 20 49 74 20 63 61 6e |emotely.| It can|
|00002a50| 20 62 65 20 75 73 65 64 | 20 74 6f 0d 73 65 6e 64 | be used| to.send|
|00002a60| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 74 | an expr|ession t|
|00002a70| 6f 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 20 74 68 |o any pr|ogram th|
|00002a80| 61 74 20 75 6e 64 65 72 | 73 74 61 6e 64 73 20 74 |at under|stands t|
|00002a90| 68 65 20 73 74 61 6e 64 | 61 72 64 20 27 65 76 61 |he stand|ard 'eva|
|00002aa0| 6c 27 20 41 70 70 6c 65 | 0d 65 76 65 6e 74 2e 20 |l' Apple|.event. |
|00002ab0| 20 54 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | The val|ue of th|
|00002ac0| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 20 77 69 6c |e expres|sion wil|
|00002ad0| 6c 20 62 65 20 70 75 74 | 20 69 6e 74 6f 20 74 68 |l be put| into th|
|00002ae0| 65 20 6c 6f 63 61 6c 20 | 76 61 72 69 61 62 6c 65 |e local |variable|
|00002af0| 20 22 69 74 22 2e 0d 0d | 20 20 20 20 45 78 61 6d | "it"...| Exam|
|00002b00| 70 6c 65 73 3a 0d 0d 20 | 20 20 20 72 65 71 75 65 |ples:.. | reque|
|00002b10| 73 74 20 22 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |st "the |name of |
|00002b20| 74 68 69 73 20 73 74 61 | 63 6b 22 20 6f 66 20 70 |this sta|ck" of p|
|00002b30| 72 6f 67 72 61 6d 20 22 | 48 79 70 65 72 43 61 72 |rogram "|HyperCar|
|00002b40| 64 22 0d 20 20 20 20 72 | 65 71 75 65 73 74 20 22 |d". r|equest "|
|00002b50| 7b 74 61 72 67 65 74 7d | 22 20 66 72 6f 6d 20 70 |{target}|" from p|
|00002b60| 72 6f 67 72 61 6d 20 22 | 4d 50 57 20 53 68 65 6c |rogram "|MPW Shel|
|00002b70| 6c 22 0d 0d 48 61 6e 64 | 6c 69 6e 67 20 66 61 69 |l"..Hand|ling fai|
|00002b80| 6c 75 72 65 73 0d 0d 20 | 20 20 20 54 68 65 20 22 |lures.. | The "|
|00002b90| 73 65 6e 64 22 2c 20 22 | 6f 70 65 6e 22 2c 20 22 |send", "|open", "|
|00002ba0| 70 72 69 6e 74 22 2c 20 | 22 63 6c 6f 73 65 22 2c |print", |"close",|
|00002bb0| 20 61 6e 64 20 22 72 65 | 71 75 65 73 74 22 20 63 | and "re|quest" c|
|00002bc0| 6f 6d 6d 61 6e 64 73 20 | 73 65 74 20 22 74 68 65 |ommands |set "the|
|00002bd0| 0d 72 65 73 75 6c 74 22 | 20 61 73 20 66 6f 6c 6c |.result"| as foll|
|00002be0| 6f 77 73 20 77 68 65 6e | 20 74 68 65 79 20 66 61 |ows when| they fa|
|00002bf0| 69 6c 2e 0d 0d 43 6f 6e | 64 69 74 69 6f 6e 20 20 |il...Con|dition |
|00002c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 | | the|
|00002c20| 20 72 65 73 75 6c 74 0d | 2d 2d 2d 2d 2d 2d 2d 2d | result.|--------|
|00002c30| 2d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |- | |
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00002c60| 55 73 65 72 20 63 61 6e | 63 65 6c 65 64 20 74 68 |User can|celed th|
|00002c70| 65 20 22 4c 69 6e 6b 20 | 74 6f 20 70 72 6f 67 72 |e "Link |to progr|
|00002c80| 61 6d 22 20 20 20 20 20 | 22 43 61 6e 63 65 6c 22 |am" |"Cancel"|
|00002c90| 0d 20 20 64 69 61 6c 6f | 67 2e 0d 54 61 72 67 65 |. dialo|g..Targe|
|00002ca0| 74 20 70 72 6f 67 72 61 | 6d 20 64 69 64 6e 27 74 |t progra|m didn't|
|00002cb0| 20 68 61 6e 64 6c 65 20 | 65 76 65 6e 74 2e 20 20 | handle |event. |
|00002cc0| 20 20 20 22 4e 6f 74 20 | 68 61 6e 64 6c 65 64 20 | "Not |handled |
|00002cd0| 62 79 20 74 61 72 67 65 | 74 20 70 72 6f 67 72 61 |by targe|t progra|
|00002ce0| 6d 22 0d 54 61 72 67 65 | 74 20 70 72 6f 67 72 61 |m".Targe|t progra|
|00002cf0| 6d 20 74 69 6d 65 64 20 | 6f 75 74 2e 20 20 20 20 |m timed |out. |
|00002d00| 20 20 20 20 20 20 20 20 | 20 20 20 22 54 69 6d 65 | | "Time|
|00002d10| 6f 75 74 22 0d 54 61 72 | 67 65 74 20 70 72 6f 67 |out".Tar|get prog|
|00002d20| 72 61 6d 20 72 65 74 75 | 72 6e 65 64 20 65 72 72 |ram retu|rned err|
|00002d30| 6f 72 20 73 74 72 69 6e | 67 20 20 20 20 74 68 65 |or strin|g the|
|00002d40| 20 73 74 72 69 6e 67 0d | 20 20 69 6e 20 72 65 70 | string.| in rep|
|00002d50| 6c 79 2e 0d 54 61 72 67 | 65 74 20 70 72 6f 67 72 |ly..Targ|et progr|
|00002d60| 61 6d 20 72 65 74 75 72 | 6e 65 64 20 65 72 72 6f |am retur|ned erro|
|00002d70| 72 20 6e 75 6d 62 65 72 | 20 20 20 20 22 47 6f 74 |r number| "Got|
|00002d80| 20 65 72 72 6f 72 20 3c | 65 72 72 6f 72 4e 75 6d | error <|errorNum|
|00002d90| 3e 0d 20 20 69 6e 20 72 | 65 70 6c 79 2c 20 6f 72 |>. in r|eply, or|
|00002da0| 20 41 45 53 65 6e 64 20 | 72 65 74 75 72 6e 65 64 | AESend |returned|
|00002db0| 20 73 6f 6d 65 20 20 20 | 20 20 20 20 77 68 65 6e | some | when|
|00002dc0| 20 73 65 6e 64 69 6e 67 | 20 41 70 70 6c 65 28 20 | sending| Apple( |
|00002dd0| 65 76 65 6e 74 22 0d 20 | 20 6f 74 68 65 72 20 65 |event". | other e|
|00002de0| 72 72 6f 72 2e 0d 0d 45 | 73 74 61 62 6c 69 73 68 |rror...E|stablish|
|00002df0| 69 6e 67 20 70 72 6f 67 | 72 61 6d 20 6c 69 6e 6b |ing prog|ram link|
|00002e00| 73 0d 0d 20 20 20 20 57 | 68 65 6e 20 73 65 6e 64 |s.. W|hen send|
|00002e10| 69 6e 67 20 41 70 70 6c | 65 20 65 76 65 6e 74 73 |ing Appl|e events|
|00002e20| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 70 72 6f 67 | to anot|her prog|
|00002e30| 72 61 6d 2c 20 69 66 20 | 48 79 70 65 72 43 61 72 |ram, if |HyperCar|
|00002e40| 64 20 68 61 73 20 6e 6f | 74 0d 65 73 74 61 62 6c |d has no|t.establ|
|00002e50| 69 73 68 65 64 20 61 20 | 6c 69 6e 6b 20 77 69 74 |ished a |link wit|
|00002e60| 68 20 74 68 65 20 74 61 | 72 67 65 74 20 70 72 6f |h the ta|rget pro|
|00002e70| 67 72 61 6d 2c 20 74 68 | 65 20 75 73 65 72 20 77 |gram, th|e user w|
|00002e80| 69 6c 6c 20 62 65 20 70 | 72 65 73 65 6e 74 65 64 |ill be p|resented|
|00002e90| 20 77 69 74 68 20 61 0d | 64 69 61 6c 6f 67 2c 20 | with a.|dialog, |
|00002ea0| 74 68 72 6f 75 67 68 20 | 77 68 69 63 68 20 74 68 |through |which th|
|00002eb0| 65 20 6c 69 6e 6b 20 77 | 69 6c 6c 20 62 65 20 65 |e link w|ill be e|
|00002ec0| 73 74 61 62 6c 69 73 68 | 65 64 2e 20 20 49 66 20 |stablish|ed. If |
|00002ed0| 61 20 6c 69 6e 6b 20 68 | 61 73 20 61 6c 72 65 61 |a link h|as alrea|
|00002ee0| 64 79 20 62 65 65 6e 0d | 65 73 74 61 62 6c 69 73 |dy been.|establis|
|00002ef0| 68 65 64 20 62 65 74 77 | 65 65 6e 20 48 79 70 65 |hed betw|een Hype|
|00002f00| 72 43 61 72 64 20 61 6e | 64 20 74 68 65 20 74 61 |rCard an|d the ta|
|00002f10| 72 67 65 74 20 70 72 6f | 67 72 61 6d 2c 20 74 68 |rget pro|gram, th|
|00002f20| 65 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 77 69 |e Apple |event wi|
|00002f30| 6c 6c 20 62 65 0d 73 65 | 6e 74 20 77 69 74 68 6f |ll be.se|nt witho|
|00002f40| 75 74 20 66 75 72 74 68 | 65 72 20 75 73 65 72 20 |ut furth|er user |
|00002f50| 69 6e 74 65 72 61 63 74 | 69 6f 6e 2e 0d 0d 44 65 |interact|ion...De|
|00002f60| 74 65 72 6d 69 6e 69 6e | 67 20 74 68 65 20 74 61 |terminin|g the ta|
|00002f70| 72 67 65 74 20 70 72 6f | 67 72 61 6d 0d 0d 20 20 |rget pro|gram.. |
|00002f80| 20 20 54 68 65 20 74 61 | 72 67 65 74 20 70 72 6f | The ta|rget pro|
|00002f90| 67 72 61 6d 20 66 6f 72 | 20 41 70 70 6c 65 20 65 |gram for| Apple e|
|00002fa0| 76 65 6e 74 73 20 69 73 | 20 73 70 65 63 69 66 69 |vents is| specifi|
|00002fb0| 65 64 20 62 79 20 61 20 | 73 74 72 69 6e 67 20 69 |ed by a |string i|
|00002fc0| 6e 20 74 68 65 0d 66 6f | 6c 6c 6f 77 69 6e 67 20 |n the.fo|llowing |
|00002fd0| 66 6f 72 6d 61 74 3a 0d | 0d 20 20 20 20 7a 6f 6e |format:.|. zon|
|00002fe0| 65 3a 6d 61 63 68 69 6e | 65 3a 70 72 6f 67 72 61 |e:machin|e:progra|
|00002ff0| 6d 0d 0d 20 20 20 20 45 | 78 61 6d 70 6c 65 73 3a |m.. E|xamples:|
|00003000| 0d 0d 20 20 20 20 22 46 | 69 66 74 68 20 46 6c 6f |.. "F|ifth Flo|
|00003010| 6f 72 3a 47 69 7a 6d 6f | 3a 4d 61 63 57 72 69 74 |or:Gizmo|:MacWrit|
|00003020| 65 22 0d 20 20 20 20 22 | 42 61 62 79 20 6d 61 63 |e". "|Baby mac|
|00003030| 3a 4d 61 63 57 72 69 74 | 65 22 0d 20 20 20 20 20 |:MacWrit|e". |
|00003040| 20 20 20 2d 2d 20 7a 6f | 6e 65 20 6f 6d 69 74 74 | -- zo|ne omitt|
|00003050| 65 64 3b 20 48 79 70 65 | 72 43 61 72 64 20 61 73 |ed; Hype|rCard as|
|00003060| 73 75 6d 65 73 20 73 61 | 6d 65 20 7a 6f 6e 65 0d |sumes sa|me zone.|
|00003070| 20 20 20 20 4d 61 63 57 | 72 69 74 65 0d 20 20 20 | MacW|rite. |
|00003080| 20 20 20 20 20 2d 2d 20 | 7a 6f 6e 65 20 61 6e 64 | -- |zone and|
|00003090| 20 6d 61 63 68 69 6e 65 | 20 6f 6d 69 74 74 65 64 | machine| omitted|
|000030a0| 3b 20 48 79 70 65 72 43 | 61 72 64 20 61 73 73 75 |; HyperC|ard assu|
|000030b0| 6d 65 73 20 73 61 6d 65 | 20 7a 6f 6e 65 2c 0d 20 |mes same| zone,. |
|000030c0| 20 20 20 20 20 20 20 20 | 20 20 20 73 61 6d 65 20 | | same |
|000030d0| 6d 61 63 68 69 6e 65 0d | 0d 20 20 20 20 48 79 70 |machine.|. Hyp|
|000030e0| 65 72 43 61 72 64 27 73 | 20 61 64 64 72 65 73 73 |erCard's| address|
|000030f0| 20 6f 6e 20 74 68 65 20 | 6e 65 74 77 6f 72 6b 20 | on the |network |
|00003100| 69 73 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 20 |is conta|ined in |
|00003110| 74 68 65 20 70 72 6f 70 | 65 72 74 79 2c 20 22 74 |the prop|erty, "t|
|00003120| 68 65 0d 61 64 64 72 65 | 73 73 22 2e 0d 20 0d 20 |he.addre|ss".. . |
|00003130| 20 20 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 74 | You c|an use t|
|00003140| 68 65 20 69 74 65 6d 44 | 65 6c 69 6d 69 74 65 72 |he itemD|elimiter|
|00003150| 20 70 72 6f 70 65 72 74 | 79 20 74 6f 20 70 61 72 | propert|y to par|
|00003160| 73 65 20 70 72 6f 67 72 | 61 6d 20 61 64 64 72 65 |se progr|am addre|
|00003170| 73 73 65 73 2e 20 46 6f | 72 0d 65 78 61 6d 70 6c |sses. Fo|r.exampl|
|00003180| 65 2c 20 67 69 76 65 6e | 20 61 20 73 74 72 69 6e |e, given| a strin|
|00003190| 67 20 74 68 61 74 20 73 | 70 65 63 69 66 69 65 73 |g that s|pecifies|
|000031a0| 20 61 20 74 61 72 67 65 | 74 20 70 72 6f 67 72 61 | a targe|t progra|
|000031b0| 6d 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |m, the f|ollowing|
|000031c0| 20 48 79 70 65 72 54 61 | 6c 6b 0d 66 75 6e 63 74 | HyperTa|lk.funct|
|000031d0| 69 6f 6e 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 |ion will| return |
|000031e0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|000031f0| 70 72 6f 67 72 61 6d 20 | 69 66 20 79 6f 75 20 73 |program |if you s|
|00003200| 65 6e 64 20 69 74 20 61 | 20 63 6f 6c 6f 6e 20 61 |end it a| colon a|
|00003210| 73 20 74 68 65 0d 64 65 | 6c 69 6d 69 74 65 72 20 |s the.de|limiter |
|00003220| 61 6e 64 20 74 68 65 20 | 73 74 72 69 6e 67 20 61 |and the |string a|
|00003230| 73 20 74 68 65 20 74 65 | 78 74 2e 0d 0d 20 20 20 |s the te|xt... |
|00003240| 20 66 75 6e 63 74 69 6f | 6e 20 6c 61 73 74 48 43 | functio|n lastHC|
|00003250| 49 74 65 6d 20 64 65 6c | 69 6d 2c 74 68 65 54 65 |Item del|im,theTe|
|00003260| 78 74 0d 20 20 20 20 20 | 20 70 75 74 20 74 68 65 |xt. | put the|
|00003270| 20 69 74 65 6d 44 65 6c | 69 6d 69 74 65 72 20 69 | itemDel|imiter i|
|00003280| 6e 74 6f 20 73 61 76 65 | 64 44 65 6c 69 6d 69 74 |nto save|dDelimit|
|00003290| 65 72 0d 20 20 20 20 20 | 20 73 65 74 20 74 68 65 |er. | set the|
|000032a0| 20 69 74 65 6d 44 65 6c | 69 6d 69 74 65 72 20 74 | itemDel|imiter t|
|000032b0| 6f 20 64 65 6c 69 6d 0d | 20 20 20 20 20 20 70 75 |o delim.| pu|
|000032c0| 74 20 74 68 65 20 6c 61 | 73 74 20 69 74 65 6d 20 |t the la|st item |
|000032d0| 6f 66 20 74 68 65 54 65 | 78 74 20 69 6e 74 6f 20 |of theTe|xt into |
|000032e0| 6c 61 73 74 49 74 65 6d | 0d 20 20 20 20 20 20 73 |lastItem|. s|
|000032f0| 65 74 20 74 68 65 20 69 | 74 65 6d 44 65 6c 69 6d |et the i|temDelim|
|00003300| 69 74 65 72 20 74 6f 20 | 73 61 76 65 64 44 65 6c |iter to |savedDel|
|00003310| 69 6d 69 74 65 72 0d 20 | 20 20 20 20 20 72 65 74 |imiter. | ret|
|00003320| 75 72 6e 20 6c 61 73 74 | 49 74 65 6d 0d 20 20 20 |urn last|Item. |
|00003330| 20 65 6e 64 20 6c 61 73 | 74 48 43 49 74 65 6d 0d | end las|tHCItem.|
|00003340| 0d 43 68 6f 6f 73 69 6e | 67 20 61 20 74 61 72 67 |.Choosin|g a targ|
|00003350| 65 74 20 70 72 6f 67 72 | 61 6d 0d 0d 20 20 20 20 |et progr|am.. |
|00003360| 54 68 65 20 61 6e 73 77 | 65 72 20 63 6f 6d 6d 61 |The answ|er comma|
|00003370| 6e 64 20 68 61 73 20 62 | 65 65 6e 20 65 78 74 65 |nd has b|een exte|
|00003380| 6e 64 65 64 20 66 6f 72 | 20 75 73 65 20 77 69 74 |nded for| use wit|
|00003390| 68 20 74 68 65 20 50 72 | 6f 67 72 61 6d 20 4c 69 |h the Pr|ogram Li|
|000033a0| 6e 6b 69 6e 67 0d 64 69 | 61 6c 6f 67 2c 20 73 6f |nking.di|alog, so|
|000033b0| 20 74 68 61 74 20 73 63 | 72 69 70 74 65 72 73 20 | that sc|ripters |
|000033c0| 63 61 6e 20 61 6c 6c 6f | 77 20 75 73 65 72 73 20 |can allo|w users |
|000033d0| 74 6f 20 73 65 6c 65 63 | 74 20 61 20 70 72 6f 67 |to selec|t a prog|
|000033e0| 72 61 6d 20 74 6f 20 6c | 69 6e 6b 20 74 6f 2e 0d |ram to l|ink to..|
|000033f0| 20 0d 20 20 20 20 61 6e | 73 77 65 72 20 70 72 6f | . an|swer pro|
|00003400| 67 72 61 6d 20 70 72 6f | 6d 70 74 20 7b 20 6f 66 |gram pro|mpt { of|
|00003410| 20 74 79 70 65 20 3c 66 | 61 63 74 6f 72 4c 69 73 | type <f|actorLis|
|00003420| 74 3e 20 7d 0d 0d 57 68 | 65 6e 20 75 73 65 64 20 |t> }..Wh|en used |
|00003430| 69 6e 20 74 68 69 73 20 | 77 61 79 2c 20 74 68 65 |in this |way, the|
|00003440| 20 61 6e 73 77 65 72 20 | 63 6f 6d 6d 61 6e 64 20 | answer |command |
|00003450| 64 69 73 70 6c 61 79 73 | 20 74 68 65 20 50 50 43 |displays| the PPC|
|00003460| 20 62 72 6f 77 73 65 72 | 2c 20 66 72 6f 6d 20 77 | browser|, from w|
|00003470| 68 69 63 68 0d 74 68 65 | 20 75 73 65 72 20 63 61 |hich.the| user ca|
|00003480| 6e 20 73 65 6c 65 63 74 | 20 61 6e 79 20 70 72 6f |n select| any pro|
|00003490| 67 72 61 6d 20 72 75 6e | 6e 69 6e 67 20 6f 6e 20 |gram run|ning on |
|000034a0| 61 6e 79 20 6d 61 63 68 | 69 6e 65 20 63 6f 6e 6e |any mach|ine conn|
|000034b0| 65 63 74 65 64 20 74 6f | 20 74 68 65 0d 41 70 70 |ected to| the.App|
|000034c0| 6c 65 54 61 6c 6b 20 6e | 65 74 77 6f 72 6b 2e 20 |leTalk n|etwork. |
|000034d0| 20 41 20 73 74 72 69 6e | 67 20 72 65 70 72 65 73 | A strin|g repres|
|000034e0| 65 6e 74 69 6e 67 20 74 | 68 65 20 70 72 6f 67 72 |enting t|he progr|
|000034f0| 61 6d 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |am the u|ser sele|
|00003500| 63 74 73 20 69 73 20 70 | 6c 61 63 65 64 0d 69 6e |cts is p|laced.in|
|00003510| 74 6f 20 74 68 65 20 6c | 6f 63 61 6c 20 76 61 72 |to the l|ocal var|
|00003520| 69 61 62 6c 65 20 22 69 | 74 22 2e 0d 0d 45 78 61 |iable "i|t"...Exa|
|00003530| 6d 70 6c 65 73 3a 0d 0d | 20 20 20 20 61 6e 73 77 |mples:..| answ|
|00003540| 65 72 20 70 72 6f 67 72 | 61 6d 20 22 57 68 65 72 |er progr|am "Wher|
|00003550| 65 20 64 69 64 20 79 6f | 75 20 73 61 79 20 74 68 |e did yo|u say th|
|00003560| 61 74 20 70 72 6f 67 72 | 61 6d 20 77 61 73 20 61 |at progr|am was a|
|00003570| 67 61 69 6e 3f 22 0d 20 | 20 20 20 61 6e 73 77 65 |gain?". | answe|
|00003580| 72 20 70 72 6f 67 72 61 | 6d 20 22 43 68 6f 6f 73 |r progra|m "Choos|
|00003590| 65 20 61 20 73 70 65 6c | 6c 69 6e 67 20 63 68 65 |e a spel|ling che|
|000035a0| 63 6b 65 72 3a 22 20 6f | 66 20 74 79 70 65 20 22 |cker:" o|f type "|
|000035b0| 53 70 65 6c 6c 63 68 65 | 63 6b 22 0d 0d 20 20 20 |Spellche|ck".. |
|000035c0| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 20 61 | In addi|tion, a|
|000035d0| 20 73 63 72 69 70 74 65 | 72 20 63 61 6e 20 64 65 | scripte|r can de|
|000035e0| 74 65 72 6d 69 6e 65 20 | 77 68 69 63 68 20 70 72 |termine |which pr|
|000035f0| 6f 67 72 61 6d 73 20 61 | 72 65 20 72 75 6e 6e 69 |ograms a|re runni|
|00003600| 6e 67 20 6f 6e 20 74 68 | 65 0d 73 61 6d 65 20 6d |ng on th|e.same m|
|00003610| 61 63 68 69 6e 65 20 61 | 73 20 48 79 70 65 72 43 |achine a|s HyperC|
|00003620| 61 72 64 20 62 79 20 65 | 78 61 6d 69 6e 69 6e 67 |ard by e|xamining|
|00003630| 20 74 68 65 20 6e 65 77 | 20 48 79 70 65 72 54 61 | the new| HyperTa|
|00003640| 6c 6b 20 66 75 6e 63 74 | 69 6f 6e 2c 20 22 74 68 |lk funct|ion, "th|
|00003650| 65 0d 70 72 6f 67 72 61 | 6d 73 22 2e 20 20 49 74 |e.progra|ms". It|
|00003660| 20 72 65 74 75 72 6e 73 | 20 61 20 72 65 74 75 72 | returns| a retur|
|00003670| 6e 2d 64 65 6c 69 6d 69 | 74 65 64 20 6c 69 73 74 |n-delimi|ted list|
|00003680| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 6c 69 6e 6b | of all |the link|
|00003690| 61 62 6c 65 20 70 72 6f | 67 72 61 6d 73 0d 63 75 |able pro|grams.cu|
|000036a0| 72 72 65 6e 74 6c 79 20 | 72 75 6e 6e 69 6e 67 20 |rrently |running |
|000036b0| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 6d 61 63 68 |on the s|ame mach|
|000036c0| 69 6e 65 20 61 73 20 48 | 79 70 65 72 43 61 72 64 |ine as H|yperCard|
|000036d0| 2e 0d 0d 48 61 6e 64 6c | 69 6e 67 20 41 70 70 6c |...Handl|ing Appl|
|000036e0| 65 20 65 76 65 6e 74 73 | 0d 0d 20 20 20 20 57 68 |e events|.. Wh|
|000036f0| 65 6e 20 48 79 70 65 72 | 43 61 72 64 20 72 65 63 |en Hyper|Card rec|
|00003700| 65 69 76 65 73 20 61 6e | 20 41 70 70 6c 65 20 65 |eives an| Apple e|
|00003710| 76 65 6e 74 2c 20 69 74 | 20 77 69 6c 6c 20 73 65 |vent, it| will se|
|00003720| 6e 64 20 61 20 6e 65 77 | 20 48 79 70 65 72 54 61 |nd a new| HyperTa|
|00003730| 6c 6b 20 73 79 73 74 65 | 6d 0d 6d 65 73 73 61 67 |lk syste|m.messag|
|00003740| 65 2c 20 22 61 70 70 6c | 65 45 76 65 6e 74 22 2c |e, "appl|eEvent",|
|00003750| 20 74 6f 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | to the |current |
|00003760| 63 61 72 64 2c 20 61 6c | 6f 6e 67 20 77 69 74 68 |card, al|ong with|
|00003770| 20 70 61 72 61 6d 65 74 | 65 72 73 20 74 68 61 74 | paramet|ers that|
|00003780| 20 65 6e 61 62 6c 65 20 | 61 0d 73 63 72 69 70 74 | enable |a.script|
|00003790| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | to dete|rmine th|
|000037a0| 65 20 63 6c 61 73 73 2c | 20 69 64 2c 20 61 6e 64 |e class,| id, and|
|000037b0| 20 74 68 65 20 73 65 6e | 64 65 72 20 6f 66 20 74 | the sen|der of t|
|000037c0| 68 65 20 41 70 70 6c 65 | 20 65 76 65 6e 74 2e 20 |he Apple| event. |
|000037d0| 20 46 6f 72 0d 65 78 61 | 6d 70 6c 65 2c 20 77 68 | For.exa|mple, wh|
|000037e0| 65 6e 20 74 68 65 20 46 | 69 6e 64 65 72 20 73 65 |en the F|inder se|
|000037f0| 6e 64 73 20 48 79 70 65 | 72 43 61 72 64 20 61 6e |nds Hype|rCard an|
|00003800| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 20 6f 66 20 | Apple e|vent of |
|00003810| 63 6c 61 73 73 20 27 61 | 65 76 74 27 20 61 6e 64 |class 'a|evt' and|
|00003820| 20 69 64 0d 27 6f 64 6f | 63 27 2c 20 48 79 70 65 | id.'odo|c', Hype|
|00003830| 72 43 61 72 64 20 73 65 | 6e 64 73 20 74 68 65 20 |rCard se|nds the |
|00003840| 48 79 70 65 72 54 61 6c | 6b 20 6d 65 73 73 61 67 |HyperTal|k messag|
|00003850| 65 20 22 61 70 70 6c 65 | 45 76 65 6e 74 20 61 65 |e "apple|Event ae|
|00003860| 76 74 2c 6f 64 6f 63 2c | 46 69 6e 64 65 72 22 20 |vt,odoc,|Finder" |
|00003870| 74 6f 0d 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |to.the c|urrent c|
|00003880| 61 72 64 2e 0d 0d 20 20 | 20 20 41 20 73 63 72 69 |ard... | A scri|
|00003890| 70 74 20 74 68 61 74 20 | 68 61 6e 64 6c 65 73 20 |pt that |handles |
|000038a0| 61 6e 20 61 70 70 6c 65 | 45 76 65 6e 74 20 6d 65 |an apple|Event me|
|000038b0| 73 73 61 67 65 20 63 61 | 6e 20 67 61 74 68 65 72 |ssage ca|n gather|
|000038c0| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 | the par|ameters |
|000038d0| 6f 66 20 74 68 65 0d 41 | 70 70 6c 65 20 65 76 65 |of the.A|pple eve|
|000038e0| 6e 74 20 62 79 20 75 73 | 69 6e 67 20 74 68 65 20 |nt by us|ing the |
|000038f0| 6e 65 77 20 48 79 70 65 | 72 54 61 6c 6b 20 63 6f |new Hype|rTalk co|
|00003900| 6d 6d 61 6e 64 20 22 72 | 65 71 75 65 73 74 22 2e |mmand "r|equest".|
|00003910| 0d 0d 20 20 20 20 72 65 | 71 75 65 73 74 20 61 70 |.. re|quest ap|
|00003920| 70 6c 65 45 76 65 6e 74 | 20 64 61 74 61 20 7b 20 |pleEvent| data { |
|00003930| 5b 20 6f 66 20 7c 20 77 | 69 74 68 20 5d 20 6b 65 |[ of | w|ith ] ke|
|00003940| 79 77 6f 72 64 20 3c 65 | 78 70 72 3e 20 7d 0d 0d |yword <e|xpr> }..|
|00003950| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 70 75 74 |This com|mand put|
|00003960| 73 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |s the pa|rameter |
|00003970| 6f 72 20 61 74 74 72 69 | 62 75 74 65 20 77 69 74 |or attri|bute wit|
|00003980| 68 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |h the sp|ecified |
|00003990| 6b 65 79 77 6f 72 64 20 | 69 6e 74 6f 20 74 68 65 |keyword |into the|
|000039a0| 0d 6c 6f 63 61 6c 20 76 | 61 72 69 61 62 6c 65 20 |.local v|ariable |
|000039b0| 22 69 74 22 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |"it". F|or examp|
|000039c0| 6c 65 2c 20 79 6f 75 20 | 63 61 6e 20 6f 62 74 61 |le, you |can obta|
|000039d0| 69 6e 20 61 20 70 61 72 | 61 6d 65 74 65 72 20 6f |in a par|ameter o|
|000039e0| 66 20 6b 65 79 77 6f 72 | 64 20 22 65 72 72 73 22 |f keywor|d "errs"|
|000039f0| 2c 0d 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 41 |,.the st|andard A|
|00003a00| 70 70 6c 65 20 65 76 65 | 6e 74 20 6b 65 79 77 6f |pple eve|nt keywo|
|00003a10| 72 64 20 66 6f 72 20 61 | 6e 20 65 72 72 6f 72 20 |rd for a|n error |
|00003a20| 73 74 72 69 6e 67 2c 20 | 61 73 20 66 6f 6c 6c 6f |string, |as follo|
|00003a30| 77 73 3a 0d 0d 20 20 20 | 20 72 65 71 75 65 73 74 |ws:.. | request|
|00003a40| 20 61 70 70 6c 65 45 76 | 65 6e 74 20 64 61 74 61 | appleEv|ent data|
|00003a50| 20 77 69 74 68 20 6b 65 | 79 77 6f 72 64 20 22 65 | with ke|yword "e|
|00003a60| 72 72 73 22 0d 20 20 20 | 20 70 75 74 20 69 74 20 |rrs". | put it |
|00003a70| 69 6e 74 6f 20 65 72 72 | 6f 72 53 74 72 69 6e 67 |into err|orString|
|00003a80| 0d 0d 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |..If the|re is no|
|00003a90| 20 61 74 74 72 69 62 75 | 74 65 20 6f 72 20 70 61 | attribu|te or pa|
|00003aa0| 72 61 6d 65 74 65 72 20 | 77 69 74 68 20 74 68 65 |rameter |with the|
|00003ab0| 20 6b 65 79 77 6f 72 64 | 20 79 6f 75 20 73 70 65 | keyword| you spe|
|00003ac0| 63 69 66 79 2c 20 48 79 | 70 65 72 43 61 72 64 0d |cify, Hy|perCard.|
|00003ad0| 73 65 74 73 20 74 68 65 | 20 72 65 73 75 6c 74 20 |sets the| result |
|00003ae0| 74 6f 20 22 4e 6f 74 20 | 66 6f 75 6e 64 22 2e 0d |to "Not |found"..|
|00003af0| 0d 20 20 20 20 49 66 20 | 79 6f 75 20 64 6f 6e 27 |. If |you don'|
|00003b00| 74 20 73 75 70 70 6c 79 | 20 61 20 6b 65 79 77 6f |t supply| a keywo|
|00003b10| 72 64 2c 20 48 79 70 65 | 72 43 61 72 64 20 61 73 |rd, Hype|rCard as|
|00003b20| 73 75 6d 65 73 20 79 6f | 75 27 72 65 20 72 65 71 |sumes yo|u're req|
|00003b30| 75 65 73 74 69 6e 67 20 | 74 68 65 0d 64 69 72 65 |uesting |the.dire|
|00003b40| 63 74 20 6f 62 6a 65 63 | 74 20 6f 66 20 74 68 65 |ct objec|t of the|
|00003b50| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 2c 20 77 68 | Apple e|vent, wh|
|00003b60| 69 63 68 20 69 73 20 64 | 65 66 69 6e 65 64 20 62 |ich is d|efined b|
|00003b70| 79 20 74 68 65 20 41 70 | 70 6c 65 20 65 76 65 6e |y the Ap|ple even|
|00003b80| 74 20 6d 61 6e 61 67 65 | 72 20 61 73 0d 74 68 65 |t manage|r as.the|
|00003b90| 20 70 61 72 61 6d 65 74 | 65 72 20 77 69 74 68 20 | paramet|er with |
|00003ba0| 6b 65 79 77 6f 72 64 20 | 22 2d 2d 2d 2d 22 2e 20 |keyword |"----". |
|00003bb0| 20 54 68 65 20 72 65 71 | 75 65 73 74 20 63 6f 6d | The req|uest com|
|00003bc0| 6d 61 6e 64 20 61 6c 73 | 6f 20 73 75 70 70 6f 72 |mand als|o suppor|
|00003bd0| 74 73 20 73 65 76 65 72 | 61 6c 0d 73 70 65 63 69 |ts sever|al.speci|
|00003be0| 61 6c 20 63 61 73 65 73 | 20 66 6f 72 20 69 6d 70 |al cases| for imp|
|00003bf0| 6f 72 74 61 6e 74 20 61 | 74 74 72 69 62 75 74 65 |ortant a|ttribute|
|00003c00| 73 20 6f 66 20 41 70 70 | 6c 65 20 65 76 65 6e 74 |s of App|le event|
|00003c10| 73 3a 0d 0d 20 20 20 20 | 72 65 71 75 65 73 74 20 |s:.. |request |
|00003c20| 61 70 70 6c 65 45 76 65 | 6e 74 20 63 6c 61 73 73 |appleEve|nt class|
|00003c30| 0d 20 20 20 20 72 65 71 | 75 65 73 74 20 61 70 70 |. req|uest app|
|00003c40| 6c 65 45 76 65 6e 74 20 | 69 64 0d 20 20 20 20 72 |leEvent |id. r|
|00003c50| 65 71 75 65 73 74 20 61 | 70 70 6c 65 45 76 65 6e |equest a|ppleEven|
|00003c60| 74 20 73 65 6e 64 65 72 | 0d 20 20 20 20 72 65 71 |t sender|. req|
|00003c70| 75 65 73 74 20 61 70 70 | 6c 65 45 76 65 6e 74 20 |uest app|leEvent |
|00003c80| 72 65 74 75 72 6e 20 69 | 64 0d 0d 20 20 20 20 48 |return i|d.. H|
|00003c90| 79 70 65 72 43 61 72 64 | 20 77 69 6c 6c 20 61 74 |yperCard| will at|
|00003ca0| 74 65 6d 70 74 20 74 6f | 20 63 6f 6e 76 65 72 74 |tempt to| convert|
|00003cb0| 20 61 6c 6c 20 74 68 65 | 20 41 70 70 6c 65 20 65 | all the| Apple e|
|00003cc0| 76 65 6e 74 20 70 61 72 | 61 6d 65 74 65 72 73 20 |vent par|ameters |
|00003cd0| 74 6f 20 73 74 72 69 6e | 67 73 2c 0d 66 6f 72 20 |to strin|gs,.for |
|00003ce0| 75 73 65 20 69 6e 20 48 | 79 70 65 72 54 61 6c 6b |use in H|yperTalk|
|00003cf0| 2e 20 20 54 68 65 20 41 | 70 70 6c 65 20 65 76 65 |. The A|pple eve|
|00003d00| 6e 74 20 6d 61 6e 61 67 | 65 72 20 61 75 74 6f 6d |nt manag|er autom|
|00003d10| 61 74 69 63 61 6c 6c 79 | 20 68 61 6e 64 6c 65 73 |atically| handles|
|00003d20| 20 74 68 65 0d 63 6f 6e | 76 65 72 73 69 6f 6e 20 | the.con|version |
|00003d30| 6f 66 20 6e 75 6d 65 72 | 69 63 61 6c 20 66 6f 72 |of numer|ical for|
|00003d40| 6d 73 20 74 6f 20 73 74 | 72 69 6e 67 73 3b 20 48 |ms to st|rings; H|
|00003d50| 79 70 65 72 43 61 72 64 | 20 69 6e 73 74 61 6c 6c |yperCard| install|
|00003d60| 73 20 63 6f 65 72 63 69 | 6f 6e 20 68 61 6e 64 6c |s coerci|on handl|
|00003d70| 65 72 73 0d 66 6f 72 20 | 61 6c 69 61 73 20 72 65 |ers.for |alias re|
|00003d80| 63 6f 72 64 73 2c 20 72 | 65 74 75 72 6e 20 69 64 |cords, r|eturn id|
|00003d90| 73 2c 20 70 72 6f 63 65 | 73 73 20 73 65 72 69 61 |s, proce|ss seria|
|00003da0| 6c 20 6e 75 6d 62 65 72 | 73 2c 20 74 61 72 67 65 |l number|s, targe|
|00003db0| 74 20 69 64 73 2c 20 63 | 6c 61 73 73 20 61 6e 64 |t ids, c|lass and|
|00003dc0| 20 69 64 0d 74 79 70 65 | 73 2c 20 61 6e 64 20 6c | id.type|s, and l|
|00003dd0| 69 73 74 73 2e 0d 0d 20 | 20 20 20 49 66 20 61 6e |ists... | If an|
|00003de0| 20 69 6e 63 6f 6d 69 6e | 67 20 41 70 70 6c 65 20 | incomin|g Apple |
|00003df0| 65 76 65 6e 74 20 73 70 | 65 63 69 66 69 65 73 20 |event sp|ecifies |
|00003e00| 74 68 61 74 20 75 73 65 | 72 20 61 63 74 69 6f 6e |that use|r action|
|00003e10| 20 69 73 20 6e 6f 74 20 | 70 65 72 6d 69 73 73 69 | is not |permissi|
|00003e20| 62 6c 65 2c 0d 74 68 65 | 20 67 6c 6f 62 61 6c 20 |ble,.the| global |
|00003e30| 70 72 6f 70 65 72 74 79 | 20 6c 6f 63 6b 45 72 72 |property| lockErr|
|00003e40| 6f 72 44 69 61 6c 6f 67 | 73 20 77 69 6c 6c 20 61 |orDialog|s will a|
|00003e50| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 62 65 20 |utomatic|ally be |
|00003e60| 73 65 74 20 74 6f 20 54 | 52 55 45 20 28 73 65 65 |set to T|RUE (see|
|00003e70| 0d 22 45 72 72 6f 72 20 | 48 61 6e 64 6c 69 6e 67 |."Error |Handling|
|00003e80| 22 2c 20 62 65 6c 6f 77 | 29 2e 20 20 54 68 65 20 |", below|). The |
|00003e90| 73 63 72 69 70 74 65 72 | 20 63 61 6e 20 6f 76 65 |scripter| can ove|
|00003ea0| 72 72 69 64 65 20 74 68 | 69 73 20 73 65 74 74 69 |rride th|is setti|
|00003eb0| 6e 67 2e 0d 0d 20 20 20 | 20 45 78 61 6d 70 6c 65 |ng... | Example|
|00003ec0| 3a 20 20 61 20 73 63 72 | 69 70 74 65 72 20 64 65 |: a scr|ipter de|
|00003ed0| 66 69 6e 65 73 20 61 6e | 20 65 76 65 6e 74 20 6f |fines an| event o|
|00003ee0| 66 20 63 6c 61 73 73 20 | 27 57 49 4c 44 27 20 61 |f class |'WILD' a|
|00003ef0| 6e 64 20 69 64 20 27 63 | 6e 76 74 27 20 61 73 20 |nd id 'c|nvt' as |
|00003f00| 61 0d 72 65 71 75 65 73 | 74 20 74 6f 20 63 6f 6e |a.reques|t to con|
|00003f10| 76 65 72 74 20 61 20 31 | 2e 32 2e 35 20 73 74 61 |vert a 1|.2.5 sta|
|00003f20| 63 6b 20 74 6f 20 74 68 | 65 20 32 2e 30 20 66 69 |ck to th|e 2.0 fi|
|00003f30| 6c 65 20 66 6f 72 6d 61 | 74 2e 20 20 54 68 65 20 |le forma|t. The |
|00003f40| 64 69 72 65 63 74 20 6f | 62 6a 65 63 74 20 6f 66 |direct o|bject of|
|00003f50| 0d 74 68 65 20 41 70 70 | 6c 65 20 65 76 65 6e 74 |.the App|le event|
|00003f60| 20 69 73 20 64 65 66 69 | 6e 65 64 20 74 6f 20 62 | is defi|ned to b|
|00003f70| 65 20 74 68 65 20 70 61 | 74 68 6e 61 6d 65 20 6f |e the pa|thname o|
|00003f80| 66 20 74 68 65 20 73 74 | 61 63 6b 2e 20 20 54 68 |f the st|ack. Th|
|00003f90| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 0d 73 63 72 69 |e follow|ing.scri|
|00003fa0| 70 74 20 77 69 6c 6c 20 | 64 6f 20 74 68 65 20 74 |pt will |do the t|
|00003fb0| 72 69 63 6b 2e 0d 0d 20 | 20 20 20 6f 6e 20 61 70 |rick... | on ap|
|00003fc0| 70 6c 65 45 76 65 6e 74 | 20 65 76 65 6e 74 43 6c |pleEvent| eventCl|
|00003fd0| 61 73 73 2c 65 76 65 6e | 74 49 44 2c 73 65 6e 64 |ass,even|tID,send|
|00003fe0| 65 72 0d 20 20 20 20 20 | 20 69 66 20 65 76 65 6e |er. | if even|
|00003ff0| 74 43 6c 61 73 73 20 26 | 20 65 76 65 6e 74 49 44 |tClass &| eventID|
|00004000| 20 69 73 20 6e 6f 74 20 | 22 57 49 4c 44 63 6e 76 | is not |"WILDcnv|
|00004010| 74 22 0d 20 20 20 20 20 | 20 74 68 65 6e 20 70 61 |t". | then pa|
|00004020| 73 73 20 61 70 70 6c 65 | 45 76 65 6e 74 0d 20 20 |ss apple|Event. |
|00004030| 20 20 20 20 65 6c 73 65 | 0d 20 20 20 20 20 20 20 | else|. |
|00004040| 20 72 65 71 75 65 73 74 | 20 61 70 70 6c 65 45 76 | request| appleEv|
|00004050| 65 6e 74 20 64 61 74 61 | 0d 20 20 20 20 20 20 20 |ent data|. |
|00004060| 20 69 66 20 69 74 20 69 | 73 20 65 6d 70 74 79 20 | if it i|s empty |
|00004070| 74 68 65 6e 20 65 78 69 | 74 20 61 70 70 6c 65 45 |then exi|t appleE|
|00004080| 76 65 6e 74 0d 20 20 20 | 20 20 20 20 20 67 6f 20 |vent. | go |
|00004090| 74 6f 20 73 74 61 63 6b | 20 69 74 0d 20 20 20 20 |to stack| it. |
|000040a0| 20 20 20 20 69 66 20 74 | 68 65 20 72 65 73 75 6c | if t|he resul|
|000040b0| 74 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |t is not| empty t|
|000040c0| 68 65 6e 20 65 78 69 74 | 20 61 70 70 6c 65 45 76 |hen exit| appleEv|
|000040d0| 65 6e 74 0d 0d 20 20 20 | 20 20 20 20 20 69 66 20 |ent.. | if |
|000040e0| 74 68 65 72 65 20 69 73 | 20 61 20 6d 65 6e 75 49 |there is| a menuI|
|000040f0| 74 65 6d 20 22 43 6f 6e | 76 65 72 74 20 53 74 61 |tem "Con|vert Sta|
|00004100| 63 6b 2e 2e 2e 22 20 69 | 6e 20 6d 65 6e 75 20 22 |ck..." i|n menu "|
|00004110| 46 69 6c 65 22 0d 20 20 | 20 20 20 20 20 20 74 68 |File". | th|
|00004120| 65 6e 20 64 6f 4d 65 6e | 75 20 22 43 6f 6e 76 65 |en doMen|u "Conve|
|00004130| 72 74 20 53 74 61 63 6b | 2e 2e 2e 22 20 77 69 74 |rt Stack|..." wit|
|00004140| 68 6f 75 74 20 64 69 61 | 6c 6f 67 0d 20 20 20 20 |hout dia|log. |
|00004150| 20 20 65 6e 64 20 69 66 | 0d 20 20 20 20 65 6e 64 | end if|. end|
|00004160| 20 61 70 70 6c 65 45 76 | 65 6e 74 0d 0d 20 20 20 | appleEv|ent.. |
|00004170| 20 45 78 61 6d 70 6c 65 | 3a 20 20 77 68 65 6e 20 | Example|: when |
|00004180| 61 20 73 74 61 63 6b 20 | 69 73 20 6f 70 65 6e 65 |a stack |is opene|
|00004190| 64 20 66 72 6f 6d 20 74 | 68 65 20 46 69 6e 64 65 |d from t|he Finde|
|000041a0| 72 20 77 68 69 6c 65 20 | 48 79 70 65 72 43 61 72 |r while |HyperCar|
|000041b0| 64 20 69 73 20 72 75 6e | 6e 69 6e 67 2c 0d 48 79 |d is run|ning,.Hy|
|000041c0| 70 65 72 43 61 72 64 20 | 32 2e 31 20 77 69 6c 6c |perCard |2.1 will|
|000041d0| 20 6f 70 65 6e 20 74 68 | 65 20 73 74 61 63 6b 20 | open th|e stack |
|000041e0| 69 6e 20 61 20 6e 65 77 | 20 77 69 6e 64 6f 77 2e |in a new| window.|
|000041f0| 20 20 54 68 69 73 20 62 | 65 68 61 76 69 6f 72 20 | This b|ehavior |
|00004200| 69 73 20 64 69 66 66 65 | 72 65 6e 74 0d 66 72 6f |is diffe|rent.fro|
|00004210| 6d 20 70 72 65 76 69 6f | 75 73 20 76 65 72 73 69 |m previo|us versi|
|00004220| 6f 6e 73 20 6f 66 20 48 | 79 70 65 72 43 61 72 64 |ons of H|yperCard|
|00004230| 2c 20 77 68 69 63 68 20 | 77 6f 75 6c 64 20 67 6f |, which |would go|
|00004240| 20 74 6f 20 74 68 65 20 | 73 74 61 63 6b 20 69 6e | to the |stack in|
|00004250| 20 74 68 65 0d 63 75 72 | 72 65 6e 74 6c 79 20 61 | the.cur|rently a|
|00004260| 63 74 69 76 65 20 77 69 | 6e 64 6f 77 2e 20 20 49 |ctive wi|ndow. I|
|00004270| 66 20 79 6f 75 20 70 72 | 65 66 65 72 20 74 68 65 |f you pr|efer the|
|00004280| 20 6f 6c 64 20 62 65 68 | 61 76 69 6f 72 2c 20 79 | old beh|avior, y|
|00004290| 6f 75 20 63 61 6e 20 70 | 75 74 20 74 68 65 0d 66 |ou can p|ut the.f|
|000042a0| 6f 6c 6c 6f 77 69 6e 67 | 20 73 63 72 69 70 74 20 |ollowing| script |
|000042b0| 69 6e 20 79 6f 75 72 20 | 48 6f 6d 65 20 73 74 61 |in your |Home sta|
|000042c0| 63 6b 2e 0d 0d 20 20 20 | 20 6f 6e 20 61 70 70 6c |ck... | on appl|
|000042d0| 65 45 76 65 6e 74 20 65 | 76 65 6e 74 43 6c 61 73 |eEvent e|ventClas|
|000042e0| 73 2c 65 76 65 6e 74 49 | 44 2c 73 65 6e 64 65 72 |s,eventI|D,sender|
|000042f0| 0d 20 20 20 20 20 20 69 | 66 20 65 76 65 6e 74 43 |. i|f eventC|
|00004300| 6c 61 73 73 20 26 20 65 | 76 65 6e 74 49 44 20 69 |lass & e|ventID i|
|00004310| 73 20 6e 6f 74 20 22 61 | 65 76 74 6f 64 6f 63 22 |s not "a|evtodoc"|
|00004320| 0d 20 20 20 20 20 20 74 | 68 65 6e 20 70 61 73 73 |. t|hen pass|
|00004330| 20 61 70 70 6c 65 45 76 | 65 6e 74 0d 20 20 20 20 | appleEv|ent. |
|00004340| 20 20 65 6c 73 65 0d 20 | 20 20 20 20 20 20 20 72 | else. | r|
|00004350| 65 71 75 65 73 74 20 61 | 70 70 6c 65 45 76 65 6e |equest a|ppleEven|
|00004360| 74 20 64 61 74 61 0d 20 | 20 20 20 20 20 20 20 70 |t data. | p|
|00004370| 75 74 20 6c 69 6e 65 20 | 31 20 6f 66 20 69 74 20 |ut line |1 of it |
|00004380| 69 6e 74 6f 20 73 74 61 | 63 6b 54 6f 4f 70 65 6e |into sta|ckToOpen|
|00004390| 0d 20 20 20 20 20 20 20 | 20 67 6f 20 74 6f 20 73 |. | go to s|
|000043a0| 74 61 63 6b 20 73 74 61 | 63 6b 54 6f 4f 70 65 6e |tack sta|ckToOpen|
|000043b0| 0d 20 20 20 20 20 20 65 | 6e 64 20 69 66 0d 20 20 |. e|nd if. |
|000043c0| 20 20 65 6e 64 20 61 70 | 70 6c 65 45 76 65 6e 74 | end ap|pleEvent|
|000043d0| 0d 0d 20 20 20 20 49 66 | 20 48 79 70 65 72 43 61 |.. If| HyperCa|
|000043e0| 72 64 20 72 65 63 65 69 | 76 65 73 20 74 68 65 20 |rd recei|ves the |
|000043f0| 61 70 70 6c 65 45 76 65 | 6e 74 20 6d 65 73 73 61 |appleEve|nt messa|
|00004400| 67 65 2c 20 65 69 74 68 | 65 72 20 62 65 63 61 75 |ge, eith|er becau|
|00004410| 73 65 20 69 74 20 77 61 | 73 20 6e 6f 74 0d 69 6e |se it wa|s not.in|
|00004420| 74 65 72 63 65 70 74 65 | 64 20 62 79 20 61 20 73 |tercepte|d by a s|
|00004430| 63 72 69 70 74 20 6f 72 | 20 62 65 63 61 75 73 65 |cript or| because|
|00004440| 20 69 74 20 77 61 73 20 | 70 61 73 73 65 64 20 74 | it was |passed t|
|00004450| 6f 20 69 74 20 62 79 20 | 61 20 73 63 72 69 70 74 |o it by |a script|
|00004460| 2c 20 48 79 70 65 72 43 | 61 72 64 0d 77 69 6c 6c |, HyperC|ard.will|
|00004470| 20 63 68 65 63 6b 20 77 | 68 65 74 68 65 72 20 74 | check w|hether t|
|00004480| 68 65 20 63 75 72 72 65 | 6e 74 20 41 70 70 6c 65 |he curre|nt Apple|
|00004490| 20 65 76 65 6e 74 20 69 | 73 20 6f 66 20 74 68 65 | event i|s of the|
|000044a0| 20 74 79 70 65 73 20 69 | 74 20 6b 6e 6f 77 73 20 | types i|t knows |
|000044b0| 68 6f 77 20 74 6f 0d 72 | 65 73 70 6f 6e 64 20 74 |how to.r|espond t|
|000044c0| 6f 2c 20 61 6e 64 20 69 | 66 20 73 6f 2c 20 77 69 |o, and i|f so, wi|
|000044d0| 6c 6c 20 74 72 65 61 74 | 20 69 74 20 61 70 70 72 |ll treat| it appr|
|000044e0| 6f 70 72 69 61 74 65 6c | 79 2e 20 20 48 79 70 65 |opriatel|y. Hype|
|000044f0| 72 43 61 72 64 20 32 2e | 31 20 77 69 6c 6c 0d 72 |rCard 2.|1 will.r|
|00004500| 65 63 6f 67 6e 69 7a 65 | 20 74 68 65 20 66 6f 6c |ecognize| the fol|
|00004510| 6c 6f 77 69 6e 67 20 73 | 74 61 6e 64 61 72 64 20 |lowing s|tandard |
|00004520| 41 70 70 6c 65 20 65 76 | 65 6e 74 73 3a 20 27 6f |Apple ev|ents: 'o|
|00004530| 64 6f 63 27 2c 20 27 70 | 64 6f 63 27 2c 20 27 71 |doc', 'p|doc', 'q|
|00004540| 75 69 74 27 2c 20 27 64 | 6f 73 63 27 2c 0d 61 6e |uit', 'd|osc',.an|
|00004550| 64 20 27 65 76 61 6c 27 | 2e 0d 0d 20 20 20 20 48 |d 'eval'|... H|
|00004560| 79 70 65 72 43 61 72 64 | 20 72 65 73 70 6f 6e 64 |yperCard| respond|
|00004570| 73 20 74 6f 20 74 68 65 | 20 27 6f 64 6f 63 27 20 |s to the| 'odoc' |
|00004580| 65 76 65 6e 74 20 62 79 | 20 63 68 65 63 6b 69 6e |event by| checkin|
|00004590| 67 20 77 68 65 74 68 65 | 72 20 74 68 65 20 73 70 |g whethe|r the sp|
|000045a0| 65 63 69 66 69 65 64 0d | 66 69 6c 65 73 20 61 72 |ecified.|files ar|
|000045b0| 65 20 73 74 61 63 6b 73 | 20 61 6e 64 2c 20 69 66 |e stacks| and, if|
|000045c0| 20 73 6f 2c 20 6f 70 65 | 6e 69 6e 67 20 74 68 65 | so, ope|ning the|
|000045d0| 6d 2c 20 65 61 63 68 20 | 69 6e 20 61 20 6e 65 77 |m, each |in a new|
|000045e0| 20 77 69 6e 64 6f 77 2e | 0d 0d 20 20 20 20 48 79 | window.|.. Hy|
|000045f0| 70 65 72 43 61 72 64 20 | 72 65 73 70 6f 6e 64 73 |perCard |responds|
|00004600| 20 74 6f 20 74 68 65 20 | 27 70 64 6f 63 27 20 65 | to the |'pdoc' e|
|00004610| 76 65 6e 74 20 62 79 20 | 63 68 65 63 6b 69 6e 67 |vent by |checking|
|00004620| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 73 70 65 | whether| the spe|
|00004630| 63 69 66 69 65 64 0d 66 | 69 6c 65 73 20 61 72 65 |cified.f|iles are|
|00004640| 20 73 74 61 63 6b 73 20 | 61 6e 64 2c 20 69 66 20 | stacks |and, if |
|00004650| 73 6f 2c 20 6f 70 65 6e | 69 6e 67 20 74 68 65 6d |so, open|ing them|
|00004660| 20 6f 6e 65 20 61 74 20 | 61 20 74 69 6d 65 20 69 | one at |a time i|
|00004670| 6e 20 61 20 6e 65 77 20 | 77 69 6e 64 6f 77 2c 0d |n a new |window,.|
|00004680| 70 72 69 6e 74 69 6e 67 | 20 74 68 65 6d 2c 20 61 |printing| them, a|
|00004690| 6e 64 20 63 6c 6f 73 69 | 6e 67 20 74 68 65 6d 20 |nd closi|ng them |
|000046a0| 61 67 61 69 6e 2e 0d 0d | 20 20 20 20 48 79 70 65 |again...| Hype|
|000046b0| 72 43 61 72 64 20 72 65 | 73 70 6f 6e 64 73 20 74 |rCard re|sponds t|
|000046c0| 6f 20 74 68 65 20 27 71 | 75 69 74 27 20 65 76 65 |o the 'q|uit' eve|
|000046d0| 6e 74 20 6a 75 73 74 20 | 61 73 20 69 74 20 77 6f |nt just |as it wo|
|000046e0| 75 6c 64 20 69 66 20 22 | 51 75 69 74 20 48 79 70 |uld if "|Quit Hyp|
|000046f0| 65 72 43 61 72 64 22 0d | 77 65 72 65 20 63 68 6f |erCard".|were cho|
|00004700| 73 65 6e 20 66 72 6f 6d | 20 74 68 65 20 46 69 6c |sen from| the Fil|
|00004710| 65 20 6d 65 6e 75 2e 0d | 0d 20 20 20 20 48 79 70 |e menu..|. Hyp|
|00004720| 65 72 43 61 72 64 20 72 | 65 73 70 6f 6e 64 73 20 |erCard r|esponds |
|00004730| 74 6f 20 61 20 27 64 6f | 73 63 27 20 65 76 65 6e |to a 'do|sc' even|
|00004740| 74 20 62 79 20 63 6f 6d | 70 69 6c 69 6e 67 20 61 |t by com|piling a|
|00004750| 6e 64 20 65 78 65 63 75 | 74 69 6e 67 20 74 68 65 |nd execu|ting the|
|00004760| 0d 48 79 70 65 72 54 61 | 6c 6b 20 73 74 61 74 65 |.HyperTa|lk state|
|00004770| 6d 65 6e 74 73 20 73 65 | 6e 74 20 74 6f 20 69 74 |ments se|nt to it|
|00004780| 20 61 73 20 74 68 65 20 | 64 69 72 65 63 74 20 6f | as the |direct o|
|00004790| 62 6a 65 63 74 20 6f 66 | 20 74 68 65 20 65 76 65 |bject of| the eve|
|000047a0| 6e 74 2e 0d 0d 20 20 20 | 20 48 79 70 65 72 43 61 |nt... | HyperCa|
|000047b0| 72 64 20 72 65 73 70 6f | 6e 64 73 20 74 6f 20 61 |rd respo|nds to a|
|000047c0| 6e 20 27 65 76 61 6c 27 | 20 65 76 65 6e 74 20 62 |n 'eval'| event b|
|000047d0| 79 20 65 76 61 6c 75 61 | 74 69 6e 67 20 74 68 65 |y evalua|ting the|
|000047e0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 73 65 6e 74 | express|ion sent|
|000047f0| 20 74 6f 0d 69 74 20 61 | 73 20 74 68 65 20 64 69 | to.it a|s the di|
|00004800| 72 65 63 74 20 6f 62 6a | 65 63 74 20 6f 66 20 74 |rect obj|ect of t|
|00004810| 68 65 20 65 76 65 6e 74 | 20 61 6e 64 20 70 75 74 |he event| and put|
|00004820| 74 69 6e 67 20 74 68 65 | 20 76 61 6c 75 65 20 69 |ting the| value i|
|00004830| 6e 74 6f 20 74 68 65 20 | 64 69 72 65 63 74 0d 6f |nto the |direct.o|
|00004840| 62 6a 65 63 74 20 6f 66 | 20 74 68 65 20 72 65 70 |bject of| the rep|
|00004850| 6c 79 2e 0d 0d 52 65 70 | 6c 79 69 6e 67 20 74 6f |ly...Rep|lying to|
|00004860| 20 41 70 70 6c 65 20 65 | 76 65 6e 74 73 0d 0d 20 | Apple e|vents.. |
|00004870| 20 20 20 53 63 72 69 70 | 74 65 72 73 20 63 61 6e | Scrip|ters can|
|00004880| 20 72 65 70 6c 79 20 74 | 6f 20 41 70 70 6c 65 20 | reply t|o Apple |
|00004890| 65 76 65 6e 74 73 20 66 | 72 6f 6d 20 48 79 70 65 |events f|rom Hype|
|000048a0| 72 54 61 6c 6b 20 77 69 | 74 68 20 61 20 6e 65 77 |rTalk wi|th a new|
|000048b0| 20 63 6f 6d 6d 61 6e 64 | 2c 0d 22 72 65 70 6c 79 | command|,."reply|
|000048c0| 22 2e 0d 0d 20 20 20 20 | 72 65 70 6c 79 20 3c 65 |"... |reply <e|
|000048d0| 78 70 72 3e 20 7b 20 77 | 69 74 68 20 6b 65 79 77 |xpr> { w|ith keyw|
|000048e0| 6f 72 64 20 3c 65 78 70 | 72 3e 20 7d 0d 0d 49 66 |ord <exp|r> }..If|
|000048f0| 20 79 6f 75 20 64 6f 6e | 27 74 20 73 70 65 63 69 | you don|'t speci|
|00004900| 66 79 20 61 20 6b 65 79 | 77 6f 72 64 20 66 6f 72 |fy a key|word for|
|00004910| 20 74 68 65 20 72 65 70 | 6c 79 20 70 61 72 61 6d | the rep|ly param|
|00004920| 65 74 65 72 2c 20 74 68 | 65 20 70 61 72 61 6d 65 |eter, th|e parame|
|00004930| 74 65 72 20 77 69 6c 6c | 0d 62 65 63 6f 6d 65 20 |ter will|.become |
|00004940| 74 68 65 20 64 69 72 65 | 63 74 20 70 61 72 61 6d |the dire|ct param|
|00004950| 65 74 65 72 20 6f 66 20 | 74 68 65 20 72 65 70 6c |eter of |the repl|
|00004960| 79 2e 20 20 49 66 20 79 | 6f 75 20 77 69 73 68 20 |y. If y|ou wish |
|00004970| 74 6f 20 72 65 74 75 72 | 6e 20 61 6e 20 65 72 72 |to retur|n an err|
|00004980| 6f 72 0d 73 74 72 69 6e | 67 2c 20 79 6f 75 20 63 |or.strin|g, you c|
|00004990| 61 6e 20 75 73 65 20 74 | 68 65 20 66 6f 6c 6c 6f |an use t|he follo|
|000049a0| 77 69 6e 67 20 66 6f 72 | 6d 20 6f 66 20 74 68 65 |wing for|m of the|
|000049b0| 20 72 65 70 6c 79 20 63 | 6f 6d 6d 61 6e 64 3a 0d | reply c|ommand:.|
|000049c0| 0d 20 20 20 20 72 65 70 | 6c 79 20 65 72 72 6f 72 |. rep|ly error|
|000049d0| 20 3c 65 78 70 72 3e 0d | 0d 54 68 69 73 20 69 73 | <expr>.|.This is|
|000049e0| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 3a 0d | equival|ent to:.|
|000049f0| 0d 20 20 20 20 72 65 70 | 6c 79 20 3c 65 78 70 72 |. rep|ly <expr|
|00004a00| 3e 20 77 69 74 68 20 6b | 65 79 77 6f 72 64 20 22 |> with k|eyword "|
|00004a10| 65 72 72 73 22 0d 0d 20 | 20 20 20 54 68 65 20 72 |errs".. | The r|
|00004a20| 65 70 6c 79 20 65 76 65 | 6e 74 20 69 73 20 73 65 |eply eve|nt is se|
|00004a30| 6e 74 20 77 68 65 6e 20 | 74 68 65 20 63 68 61 69 |nt when |the chai|
|00004a40| 6e 20 6f 66 20 65 78 65 | 63 75 74 69 6f 6e 20 69 |n of exe|cution i|
|00004a50| 73 20 63 6f 6d 70 6c 65 | 74 65 2e 0d 0d 20 20 20 |s comple|te... |
|00004a60| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 74 68 | For exa|mple, th|
|00004a70| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 63 72 69 |e follow|ing scri|
|00004a80| 70 74 20 77 69 6c 6c 20 | 68 61 6e 64 6c 65 20 41 |pt will |handle A|
|00004a90| 70 70 6c 65 20 65 76 65 | 6e 74 73 20 6f 66 20 63 |pple eve|nts of c|
|00004aa0| 6c 61 73 73 20 27 57 49 | 4c 44 27 0d 61 6e 64 20 |lass 'WI|LD'.and |
|00004ab0| 74 79 70 65 20 27 64 65 | 66 6e 27 20 62 79 20 73 |type 'de|fn' by s|
|00004ac0| 65 61 72 63 68 69 6e 67 | 20 66 6f 72 20 61 20 73 |earching| for a s|
|00004ad0| 74 72 69 6e 67 20 69 6e | 20 61 20 62 61 63 6b 67 |tring in| a backg|
|00004ae0| 72 6f 75 6e 64 20 66 69 | 65 6c 64 20 6e 61 6d 65 |round fi|eld name|
|00004af0| 64 20 22 47 6c 6f 73 73 | 61 72 79 0d 45 6e 74 72 |d "Gloss|ary.Entr|
|00004b00| 79 22 20 61 6e 64 20 72 | 65 74 75 72 6e 69 6e 67 |y" and r|eturning|
|00004b10| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|00004b20| 20 61 20 62 61 63 6b 67 | 72 6f 75 6e 64 20 66 69 | a backg|round fi|
|00004b30| 65 6c 64 20 6e 61 6d 65 | 64 20 22 44 65 66 69 6e |eld name|d "Defin|
|00004b40| 69 74 69 6f 6e 22 2e 0d | 0d 20 20 20 20 6f 6e 20 |ition"..|. on |
|00004b50| 61 70 70 6c 65 45 76 65 | 6e 74 20 65 76 65 6e 74 |appleEve|nt event|
|00004b60| 43 6c 61 73 73 2c 65 76 | 65 6e 74 49 44 2c 73 65 |Class,ev|entID,se|
|00004b70| 6e 64 65 72 0d 20 20 20 | 20 20 20 69 66 20 65 76 |nder. | if ev|
|00004b80| 65 6e 74 43 6c 61 73 73 | 20 69 73 20 22 57 49 4c |entClass| is "WIL|
|00004b90| 44 22 20 61 6e 64 20 65 | 76 65 6e 74 49 44 20 69 |D" and e|ventID i|
|00004ba0| 73 20 22 64 65 66 6e 22 | 20 74 68 65 6e 0d 20 20 |s "defn"| then. |
|00004bb0| 20 20 20 20 20 20 72 65 | 71 75 65 73 74 20 61 70 | re|quest ap|
|00004bc0| 70 6c 65 45 76 65 6e 74 | 20 64 61 74 61 0d 20 20 |pleEvent| data. |
|00004bd0| 20 20 20 20 20 20 66 69 | 6e 64 20 69 74 20 69 6e | fi|nd it in|
|00004be0| 20 66 69 65 6c 64 20 22 | 47 6c 6f 73 73 61 72 79 | field "|Glossary|
|00004bf0| 20 45 6e 74 72 79 22 0d | 20 20 20 20 20 20 20 20 | Entry".| |
|00004c00| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 73 |if the r|esult is|
|00004c10| 20 65 6d 70 74 79 20 20 | 2d 2d 20 73 75 63 63 65 | empty |-- succe|
|00004c20| 73 73 66 75 6c 20 66 69 | 6e 64 0d 20 20 20 20 20 |ssful fi|nd. |
|00004c30| 20 20 20 74 68 65 6e 20 | 72 65 70 6c 79 20 66 69 | then |reply fi|
|00004c40| 65 6c 64 20 22 44 65 66 | 69 6e 69 74 69 6f 6e 22 |eld "Def|inition"|
|00004c50| 0d 20 20 20 20 20 20 20 | 20 65 6c 73 65 20 72 65 |. | else re|
|00004c60| 70 6c 79 20 65 72 72 6f | 72 20 22 4e 6f 74 20 66 |ply erro|r "Not f|
|00004c70| 6f 75 6e 64 22 0d 20 20 | 20 20 20 20 65 6c 73 65 |ound". | else|
|00004c80| 20 70 61 73 73 20 61 70 | 70 6c 65 45 76 65 6e 74 | pass ap|pleEvent|
|00004c90| 0d 20 20 20 20 65 6e 64 | 20 61 70 70 6c 65 45 76 |. end| appleEv|
|00004ca0| 65 6e 74 0d 0d 54 68 65 | 20 22 72 65 71 75 65 73 |ent..The| "reques|
|00004cb0| 74 22 20 61 6e 64 20 22 | 72 65 70 6c 79 22 20 63 |t" and "|reply" c|
|00004cc0| 6f 6d 6d 61 6e 64 73 20 | 73 65 74 20 74 68 65 20 |ommands |set the |
|00004cd0| 72 65 73 75 6c 74 20 74 | 6f 20 22 4e 6f 20 63 75 |result t|o "No cu|
|00004ce0| 72 72 65 6e 74 20 41 70 | 70 6c 65 28 20 65 76 65 |rrent Ap|ple( eve|
|00004cf0| 6e 74 2e 22 0d 77 68 65 | 6e 20 74 68 65 72 65 20 |nt.".whe|n there |
|00004d00| 69 73 20 6e 6f 20 63 75 | 72 72 65 6e 74 20 41 70 |is no cu|rrent Ap|
|00004d10| 70 6c 65 20 65 76 65 6e | 74 20 74 6f 20 68 61 6e |ple even|t to han|
|00004d20| 64 6c 65 2e 0d 0d 0d 4d | 69 73 63 65 6c 6c 61 6e |dle....M|iscellan|
|00004d30| 65 6f 75 73 20 52 65 76 | 69 73 69 6f 6e 73 0d 2d |eous Rev|isions.-|
|00004d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004d50| 2d 2d 2d 2d 2d 2d 0d 0d | 4d 65 6e 75 73 0d 0d 20 |------..|Menus.. |
|00004d60| 20 20 20 57 68 65 6e 20 | 79 6f 75 20 61 73 6b 20 | When |you ask |
|00004d70| 66 6f 72 20 74 68 65 20 | 6e 61 6d 65 73 20 6f 66 |for the |names of|
|00004d80| 20 74 68 65 20 41 70 70 | 6c 65 2c 20 48 65 6c 70 | the App|le, Help|
|00004d90| 2c 20 61 6e 64 20 41 70 | 70 6c 69 63 61 74 69 6f |, and Ap|plicatio|
|00004da0| 6e 20 6d 65 6e 75 73 20 | 66 72 6f 6d 0d 48 79 70 |n menus |from.Hyp|
|00004db0| 65 72 54 61 6c 6b 2c 20 | 79 6f 75 20 67 65 74 20 |erTalk, |you get |
|00004dc0| 22 41 70 70 6c 65 22 2c | 20 22 53 79 73 74 65 6d |"Apple",| "System|
|00004dd0| 20 48 65 6c 70 22 2c 20 | 61 6e 64 20 22 41 70 70 | Help", |and "App|
|00004de0| 6c 69 63 61 74 69 6f 6e | 22 2c 20 72 65 73 70 65 |lication|", respe|
|00004df0| 63 74 69 76 65 6c 79 2e | 0d 0d 45 72 72 6f 72 20 |ctively.|..Error |
|00004e00| 48 61 6e 64 6c 69 6e 67 | 0d 20 0d 20 20 20 20 49 |Handling|. . I|
|00004e10| 6e 20 6f 72 64 65 72 20 | 74 6f 20 65 78 65 63 75 |n order |to execu|
|00004e20| 74 65 20 73 63 72 69 70 | 74 73 20 77 69 74 68 6f |te scrip|ts witho|
|00004e30| 75 74 20 69 6e 74 65 72 | 61 63 74 69 6f 6e 20 77 |ut inter|action w|
|00004e40| 69 74 68 20 74 68 65 20 | 75 73 65 72 2c 20 61 73 |ith the |user, as|
|00004e50| 20 77 65 6c 6c 20 61 73 | 20 74 6f 0d 70 72 6f 76 | well as| to.prov|
|00004e60| 69 64 65 20 61 20 62 65 | 74 74 65 72 20 6d 65 61 |ide a be|tter mea|
|00004e70| 6e 73 20 66 6f 72 20 74 | 65 73 74 69 6e 67 20 48 |ns for t|esting H|
|00004e80| 79 70 65 72 43 61 72 64 | 27 73 20 65 72 72 6f 72 |yperCard|'s error|
|00004e90| 20 6d 65 73 73 61 67 65 | 73 2c 20 69 74 27 73 20 | message|s, it's |
|00004ea0| 6e 6f 77 20 70 6f 73 73 | 69 62 6c 65 0d 74 6f 20 |now poss|ible.to |
|00004eb0| 6c 6f 63 6b 20 65 72 72 | 6f 72 20 64 69 61 6c 6f |lock err|or dialo|
|00004ec0| 67 73 20 61 6e 64 20 74 | 6f 20 70 75 74 20 48 79 |gs and t|o put Hy|
|00004ed0| 70 65 72 54 61 6c 6b 20 | 69 6e 74 6f 20 61 20 22 |perTalk |into a "|
|00004ee0| 71 75 69 65 74 20 6d 6f | 64 65 22 20 66 6f 72 20 |quiet mo|de" for |
|00004ef0| 73 63 72 69 70 74 0d 65 | 78 65 63 75 74 69 6f 6e |script.e|xecution|
|00004f00| 2e 20 20 57 68 65 6e 20 | 48 79 70 65 72 54 61 6c |. When |HyperTal|
|00004f10| 6b 20 65 6e 63 6f 75 6e | 74 65 72 73 20 61 6e 20 |k encoun|ters an |
|00004f20| 65 72 72 6f 72 20 77 68 | 69 6c 65 20 69 6e 20 22 |error wh|ile in "|
|00004f30| 71 75 69 65 74 20 6d 6f | 64 65 22 2c 20 69 74 20 |quiet mo|de", it |
|00004f40| 61 62 6f 72 74 73 0d 65 | 78 65 63 75 74 69 6f 6e |aborts.e|xecution|
|00004f50| 20 6f 66 20 70 65 6e 64 | 69 6e 67 20 73 63 72 69 | of pend|ing scri|
|00004f60| 70 74 73 20 6a 75 73 74 | 20 61 73 20 69 74 20 6e |pts just| as it n|
|00004f70| 6f 72 6d 61 6c 6c 79 20 | 77 6f 75 6c 64 2c 20 62 |ormally |would, b|
|00004f80| 75 74 20 69 6e 73 74 65 | 61 64 20 6f 66 0d 64 69 |ut inste|ad of.di|
|00004f90| 73 70 6c 61 79 69 6e 67 | 20 61 20 64 69 61 6c 6f |splaying| a dialo|
|00004fa0| 67 20 77 69 74 68 20 61 | 6e 20 65 72 72 6f 72 20 |g with a|n error |
|00004fb0| 6d 65 73 73 61 67 65 2c | 20 69 74 20 73 65 6e 64 |message,| it send|
|00004fc0| 73 20 61 20 22 65 72 72 | 6f 72 44 69 61 6c 6f 67 |s a "err|orDialog|
|00004fd0| 22 20 6d 65 73 73 61 67 | 65 20 74 6f 0d 74 68 65 |" messag|e to.the|
|00004fe0| 20 63 75 72 72 65 6e 74 | 20 63 61 72 64 20 77 69 | current| card wi|
|00004ff0| 74 68 20 74 68 65 20 65 | 72 72 6f 72 20 6d 65 73 |th the e|rror mes|
|00005000| 73 61 67 65 20 61 73 20 | 69 74 73 20 70 61 72 61 |sage as |its para|
|00005010| 6d 65 74 65 72 2e 20 20 | 54 68 69 73 20 6d 65 73 |meter. |This mes|
|00005020| 73 61 67 65 0d 73 75 62 | 73 74 69 74 75 74 65 73 |sage.sub|stitutes|
|00005030| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 22 | for the| first "|
|00005040| 69 64 6c 65 22 20 6d 65 | 73 73 61 67 65 20 74 68 |idle" me|ssage th|
|00005050| 61 74 20 77 6f 75 6c 64 | 20 62 65 20 73 65 6e 74 |at would| be sent|
|00005060| 20 69 6e 20 6e 6f 72 6d | 61 6c 20 6d 6f 64 65 20 | in norm|al mode |
|00005070| 61 66 74 65 72 0d 48 79 | 70 65 72 54 61 6c 6b 20 |after.Hy|perTalk |
|00005080| 63 6c 65 61 6e 73 20 75 | 70 20 61 6e 64 20 48 79 |cleans u|p and Hy|
|00005090| 70 65 72 43 61 72 64 20 | 72 65 74 75 72 6e 73 20 |perCard |returns |
|000050a0| 74 6f 20 69 74 73 20 6d | 61 69 6e 20 65 76 65 6e |to its m|ain even|
|000050b0| 74 20 6c 6f 6f 70 2e 0d | 0d 20 20 20 20 45 78 61 |t loop..|. Exa|
|000050c0| 6d 70 6c 65 3a 0d 0d 20 | 20 20 20 73 65 74 20 6c |mple:.. | set l|
|000050d0| 6f 63 6b 45 72 72 6f 72 | 44 69 61 6c 6f 67 73 20 |ockError|Dialogs |
|000050e0| 74 6f 20 54 52 55 45 20 | 20 2d 2d 20 70 75 74 73 |to TRUE | -- puts|
|000050f0| 20 48 79 70 65 72 54 61 | 6c 6b 20 69 6e 74 6f 20 | HyperTa|lk into |
|00005100| 22 71 75 69 65 74 20 6d | 6f 64 65 22 0d 20 20 20 |"quiet m|ode". |
|00005110| 20 6c 6f 63 6b 20 65 72 | 72 6f 72 20 64 69 61 6c | lock er|ror dial|
|00005120| 6f 67 73 20 20 2d 2d 20 | 61 6e 20 61 6c 74 65 72 |ogs -- |an alter|
|00005130| 6e 61 74 65 20 66 6f 72 | 6d 0d 20 20 20 20 75 6e |nate for|m. un|
|00005140| 6c 6f 63 6b 20 65 72 72 | 6f 72 20 64 69 61 6c 6f |lock err|or dialo|
|00005150| 67 73 0d 0d 57 68 65 6e | 20 48 79 70 65 72 43 61 |gs..When| HyperCa|
|00005160| 72 64 20 72 65 63 65 69 | 76 65 73 20 61 6e 20 41 |rd recei|ves an A|
|00005170| 70 70 6c 65 20 65 76 65 | 6e 74 20 66 6f 72 20 77 |pple eve|nt for w|
|00005180| 68 69 63 68 20 74 68 65 | 20 73 65 6e 64 65 72 20 |hich the| sender |
|00005190| 68 61 73 20 73 70 65 63 | 69 66 69 65 64 20 74 68 |has spec|ified th|
|000051a0| 61 74 0d 6e 6f 20 75 73 | 65 72 20 69 6e 74 65 72 |at.no us|er inter|
|000051b0| 61 63 74 69 6f 6e 20 69 | 73 20 61 6c 6c 6f 77 65 |action i|s allowe|
|000051c0| 64 2c 20 69 74 20 77 69 | 6c 6c 20 61 75 74 6f 6d |d, it wi|ll autom|
|000051d0| 61 74 69 63 61 6c 6c 79 | 20 73 65 74 20 6c 6f 63 |atically| set loc|
|000051e0| 6b 45 72 72 6f 72 44 69 | 61 6c 6f 67 73 20 74 6f |kErrorDi|alogs to|
|000051f0| 0d 54 52 55 45 20 62 65 | 66 6f 72 65 20 68 61 6e |.TRUE be|fore han|
|00005200| 64 6c 69 6e 67 20 74 68 | 65 20 65 76 65 6e 74 2e |dling th|e event.|
|00005210| 0d 0d 44 65 74 65 72 6d | 69 6e 69 6e 67 20 77 68 |..Determ|ining wh|
|00005220| 69 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 53 |ich vers|ion of S|
|00005230| 79 73 74 65 6d 20 53 6f | 66 74 77 61 72 65 20 69 |ystem So|ftware i|
|00005240| 73 20 72 75 6e 6e 69 6e | 67 0d 0d 20 20 20 20 41 |s runnin|g.. A|
|00005250| 20 6e 65 77 20 66 75 6e | 63 74 69 6f 6e 20 68 61 | new fun|ction ha|
|00005260| 73 20 62 65 65 6e 20 61 | 64 64 65 64 20 74 6f 20 |s been a|dded to |
|00005270| 48 79 70 65 72 54 61 6c | 6b 2c 20 22 74 68 65 20 |HyperTal|k, "the |
|00005280| 73 79 73 74 65 6d 56 65 | 72 73 69 6f 6e 22 2e 20 |systemVe|rsion". |
|00005290| 20 49 74 20 72 65 74 75 | 72 6e 73 0d 74 68 65 20 | It retu|rns.the |
|000052a0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 73 79 73 74 65 |version |of syste|
|000052b0| 6d 20 73 6f 66 74 77 61 | 72 65 20 69 73 20 72 75 |m softwa|re is ru|
|000052c0| 6e 6e 69 6e 67 20 69 6e | 20 61 20 64 65 63 69 6d |nning in| a decim|
|000052d0| 61 6c 20 73 74 72 69 6e | 67 2e 20 20 46 6f 72 20 |al strin|g. For |
|000052e0| 65 78 61 6d 70 6c 65 2c | 20 69 74 0d 77 69 6c 6c |example,| it.will|
|000052f0| 20 72 65 74 75 72 6e 20 | 36 2e 30 37 20 69 6e 73 | return |6.07 ins|
|00005300| 74 65 61 64 20 6f 66 20 | 36 2e 30 2e 37 2c 20 74 |tead of |6.0.7, t|
|00005310| 6f 20 61 6c 6c 6f 77 20 | 73 63 72 69 70 74 65 72 |o allow |scripter|
|00005320| 73 20 74 6f 20 75 73 65 | 20 69 74 20 77 69 74 68 |s to use| it with|
|00005330| 20 48 79 70 65 72 54 61 | 6c 6b 27 73 0d 61 72 69 | HyperTa|lk's.ari|
|00005340| 74 68 6d 65 74 69 63 20 | 6f 70 65 72 61 74 6f 72 |thmetic |operator|
|00005350| 73 2e 0d 0d 53 70 65 63 | 69 66 79 69 6e 67 20 57 |s...Spec|ifying W|
|00005360| 69 6e 64 6f 77 73 0d 0d | 20 20 20 20 59 6f 75 20 |indows..| You |
|00005370| 63 61 6e 20 6e 6f 77 20 | 72 65 66 65 72 20 74 6f |can now |refer to|
|00005380| 20 77 69 6e 64 6f 77 73 | 20 62 79 20 6e 75 6d 62 | windows| by numb|
|00005390| 65 72 20 61 6e 64 20 62 | 79 20 69 64 20 61 73 20 |er and b|y id as |
|000053a0| 77 65 6c 6c 20 61 73 20 | 62 79 20 6e 61 6d 65 2e |well as |by name.|
|000053b0| 0d 54 68 65 72 65 66 6f | 72 65 2c 20 74 68 65 20 |.Therefo|re, the |
|000053c0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|000053d0| 64 73 20 61 72 65 20 6e | 6f 77 20 76 61 6c 69 64 |ds are n|ow valid|
|000053e0| 2e 0d 20 0d 20 20 20 20 | 67 65 74 20 74 68 65 20 |.. . |get the |
|000053f0| 69 64 20 6f 66 20 74 68 | 65 20 63 61 72 64 20 77 |id of th|e card w|
|00005400| 69 6e 64 6f 77 0d 20 20 | 20 20 73 65 74 20 74 68 |indow. | set th|
|00005410| 65 20 6c 6f 63 20 6f 66 | 20 77 69 6e 64 6f 77 20 |e loc of| window |
|00005420| 31 20 74 6f 20 35 30 2c | 35 30 0d 20 20 20 20 68 |1 to 50,|50. h|
|00005430| 69 64 65 20 6c 61 73 74 | 20 77 69 6e 64 6f 77 0d |ide last| window.|
|00005440| 0d 20 20 20 20 42 6f 74 | 68 20 74 68 65 20 50 69 |. Bot|h the Pi|
|00005450| 63 74 75 72 65 20 61 6e | 64 20 50 61 6c 65 74 74 |cture an|d Palett|
|00005460| 65 20 58 43 4d 44 73 20 | 6e 6f 77 20 73 65 6e 64 |e XCMDs |now send|
|00005470| 20 74 68 65 20 69 64 20 | 6f 66 20 61 20 6e 65 77 | the id |of a new|
|00005480| 6c 79 20 63 72 65 61 74 | 65 64 20 77 69 6e 64 6f |ly creat|ed windo|
|00005490| 77 0d 61 73 20 61 6e 20 | 61 64 64 69 74 69 6f 6e |w.as an |addition|
|000054a0| 61 6c 20 70 61 72 61 6d | 65 74 65 72 20 74 6f 20 |al param|eter to |
|000054b0| 69 74 73 20 6f 70 65 6e | 20 6d 65 73 73 61 67 65 |its open| message|
|000054c0| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|000054d0| 61 66 74 65 72 20 74 68 | 65 20 50 69 63 74 75 72 |after th|e Pictur|
|000054e0| 65 0d 58 43 4d 44 20 63 | 72 65 61 74 65 73 20 61 |e.XCMD c|reates a|
|000054f0| 20 6e 65 77 20 77 69 6e | 64 6f 77 2c 20 69 74 20 | new win|dow, it |
|00005500| 73 65 6e 64 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |sends th|e follow|
|00005510| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 74 6f 20 74 |ing mess|age to t|
|00005520| 68 65 20 63 75 72 72 65 | 6e 74 20 63 61 72 64 3a |he curre|nt card:|
|00005530| 0d 20 20 20 0d 20 20 20 | 20 6f 70 65 6e 50 69 63 |. . | openPic|
|00005540| 74 75 72 65 20 3c 6e 61 | 6d 65 20 6f 66 20 77 69 |ture <na|me of wi|
|00005550| 6e 64 6f 77 3e 2c 3c 69 | 64 20 6f 66 20 77 69 6e |ndow>,<i|d of win|
|00005560| 64 6f 77 3e 0d 0d 52 65 | 61 64 20 61 6e 64 20 57 |dow>..Re|ad and W|
|00005570| 72 69 74 65 0d 0d 20 20 | 20 20 54 68 65 20 48 79 |rite.. | The Hy|
|00005580| 70 65 72 54 61 6c 6b 20 | 22 72 65 61 64 22 20 61 |perTalk |"read" a|
|00005590| 6e 64 20 22 77 72 69 74 | 65 22 20 63 6f 6d 6d 61 |nd "writ|e" comma|
|000055a0| 6e 64 73 20 68 61 76 65 | 20 62 65 65 6e 20 65 6e |nds have| been en|
|000055b0| 68 61 6e 63 65 64 2e 20 | 20 54 68 65 20 66 6f 6c |hanced. | The fol|
|000055c0| 6c 6f 77 69 6e 67 0d 65 | 78 61 6d 70 6c 65 73 20 |lowing.e|xamples |
|000055d0| 61 72 65 20 6e 6f 77 20 | 76 61 6c 69 64 2e 0d 0d |are now |valid...|
|000055e0| 20 20 20 20 72 65 61 64 | 20 66 72 6f 6d 20 66 69 | read| from fi|
|000055f0| 6c 65 20 22 46 72 65 64 | 22 20 61 74 20 31 30 30 |le "Fred|" at 100|
|00005600| 20 66 6f 72 20 31 32 0d | 20 20 20 20 72 65 61 64 | for 12.| read|
|00005610| 20 66 72 6f 6d 20 66 69 | 6c 65 20 22 46 72 65 64 | from fi|le "Fred|
|00005620| 22 20 75 6e 74 69 6c 20 | 65 6e 64 20 20 2d 2d 20 |" until |end -- |
|00005630| 27 65 6f 66 27 20 77 6f | 72 6b 73 20 74 6f 6f 0d |'eof' wo|rks too.|
|00005640| 20 20 20 20 77 72 69 74 | 65 20 6d 79 56 61 72 20 | writ|e myVar |
|00005650| 74 6f 20 66 69 6c 65 20 | 22 46 72 65 64 22 20 61 |to file |"Fred" a|
|00005660| 74 20 32 30 30 0d 20 20 | 20 20 77 72 69 74 65 20 |t 200. | write |
|00005670| 6d 6f 72 65 53 74 75 66 | 66 20 74 6f 20 66 69 6c |moreStuf|f to fil|
|00005680| 65 20 22 46 72 65 64 22 | 20 61 74 20 65 6e 64 20 |e "Fred"| at end |
|00005690| 20 2d 2d 20 27 65 6f 66 | 27 20 77 6f 72 6b 73 20 | -- 'eof|' works |
|000056a0| 74 6f 6f 0d 0d 49 6e 20 | 61 64 64 69 74 69 6f 6e |too..In |addition|
|000056b0| 2c 20 74 68 65 20 31 36 | 4b 20 6c 69 6d 69 74 20 |, the 16|K limit |
|000056c0| 6f 6e 20 74 68 65 20 61 | 6d 6f 75 6e 74 20 6f 66 |on the a|mount of|
|000056d0| 20 74 65 78 74 20 74 68 | 61 74 20 63 6f 75 6c 64 | text th|at could|
|000056e0| 20 62 65 20 72 65 61 64 | 20 61 74 20 6f 6e 63 65 | be read| at once|
|000056f0| 20 68 61 73 0d 62 65 65 | 6e 20 72 65 6d 6f 76 65 | has.bee|n remove|
|00005700| 64 2e 20 20 49 66 20 74 | 68 65 20 61 6d 6f 75 6e |d. If t|he amoun|
|00005710| 74 20 6f 66 20 74 65 78 | 74 20 79 6f 75 20 61 73 |t of tex|t you as|
|00005720| 6b 20 66 6f 72 20 77 6f | 6e 27 74 20 66 69 74 20 |k for wo|n't fit |
|00005730| 69 6e 20 6d 65 6d 6f 72 | 79 2c 20 48 79 70 65 72 |in memor|y, Hyper|
|00005740| 43 61 72 64 0d 73 65 74 | 73 20 74 68 65 20 72 65 |Card.set|s the re|
|00005750| 73 75 6c 74 20 74 6f 20 | 22 4e 6f 74 20 65 6e 6f |sult to |"Not eno|
|00005760| 75 67 68 20 6d 65 6d 6f | 72 79 20 74 6f 20 72 65 |ugh memo|ry to re|
|00005770| 61 64 20 66 72 6f 6d 20 | 66 69 6c 65 2e 22 0d 0d |ad from |file."..|
|00005780| 47 65 74 74 69 6e 67 20 | 74 68 65 20 69 6e 74 65 |Getting |the inte|
|00005790| 72 6e 61 6c 20 6d 6f 64 | 65 6d 20 66 6f 72 20 74 |rnal mod|em for t|
|000057a0| 68 65 20 50 6f 72 74 61 | 62 6c 65 20 74 6f 20 77 |he Porta|ble to w|
|000057b0| 6f 72 6b 20 77 69 74 68 | 20 22 64 69 61 6c 22 0d |ork with| "dial".|
|000057c0| 0d 20 20 20 20 41 20 6e | 65 77 20 67 6c 6f 62 61 |. A n|ew globa|
|000057d0| 6c 20 70 72 6f 70 65 72 | 74 79 2c 20 22 74 68 65 |l proper|ty, "the|
|000057e0| 20 64 69 61 6c 69 6e 67 | 54 69 6d 65 22 2c 20 68 | dialing|Time", h|
|000057f0| 61 73 20 62 65 65 6e 20 | 61 64 64 65 64 2c 20 65 |as been |added, e|
|00005800| 73 70 65 63 69 61 6c 6c | 79 20 66 6f 72 0d 75 73 |speciall|y for.us|
|00005810| 65 72 73 20 6f 66 20 74 | 68 65 20 69 6e 74 65 72 |ers of t|he inter|
|00005820| 6e 61 6c 20 6d 6f 64 65 | 6d 20 66 6f 72 20 74 68 |nal mode|m for th|
|00005830| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 50 6f 72 74 |e Macint|osh Port|
|00005840| 61 62 6c 65 2e 20 20 49 | 74 20 64 65 74 65 72 6d |able. I|t determ|
|00005850| 69 6e 65 73 20 68 6f 77 | 20 6c 6f 6e 67 0d 48 79 |ines how| long.Hy|
|00005860| 70 65 72 43 61 72 64 20 | 77 61 69 74 73 2c 20 69 |perCard |waits, i|
|00005870| 6e 20 74 69 63 6b 73 2c | 20 61 66 74 65 72 20 73 |n ticks,| after s|
|00005880| 65 6e 64 69 6e 67 20 74 | 68 65 20 64 69 61 6c 20 |ending t|he dial |
|00005890| 73 74 72 69 6e 67 2c 20 | 62 65 66 6f 72 65 20 63 |string, |before c|
|000058a0| 6c 6f 73 69 6e 67 20 74 | 68 65 0d 73 65 72 69 61 |losing t|he.seria|
|000058b0| 6c 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 77 69 74 |l connec|tion wit|
|000058c0| 68 20 74 68 65 20 6d 6f | 64 65 6d 2e 20 20 20 54 |h the mo|dem. T|
|000058d0| 68 65 20 64 65 66 61 75 | 6c 74 20 69 73 20 31 38 |he defau|lt is 18|
|000058e0| 30 20 28 33 20 73 65 63 | 6f 6e 64 73 29 2e 0d 0d |0 (3 sec|onds)...|
|000058f0| 4f 77 6e 65 72 73 0d 0d | 20 20 20 20 57 69 6e 64 |Owners..| Wind|
|00005900| 6f 77 73 20 61 6e 64 20 | 63 61 72 64 73 20 6e 6f |ows and |cards no|
|00005910| 77 20 68 61 76 65 20 61 | 6e 20 22 6f 77 6e 65 72 |w have a|n "owner|
|00005920| 22 20 70 72 6f 70 65 72 | 74 79 2e 20 20 46 6f 72 |" proper|ty. For|
|00005930| 20 77 69 6e 64 6f 77 73 | 2c 20 74 68 65 20 6f 77 | windows|, the ow|
|00005940| 6e 65 72 20 69 73 0d 64 | 65 74 65 72 6d 69 6e 65 |ner is.d|etermine|
|00005950| 64 20 61 73 20 66 6f 6c | 6c 6f 77 73 2e 0d 0d 20 |d as fol|lows... |
|00005960| 20 20 20 43 72 65 61 74 | 6f 72 20 20 20 20 20 20 | Creat|or |
|00005970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 77 6e | | Own|
|00005980| 65 72 0d 20 20 20 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |er. -|--------|
|00005990| 2d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |- | |
|000059a0| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 20 20 20 20 | -------|---. |
|000059b0| 48 79 70 65 72 43 61 72 | 64 20 20 20 20 20 20 20 |HyperCar|d |
|000059c0| 20 20 20 20 20 20 20 20 | 20 20 22 48 79 70 65 72 | | "Hyper|
|000059d0| 43 61 72 64 22 0d 20 20 | 20 20 64 65 73 6b 20 61 |Card". | desk a|
|000059e0| 63 63 65 73 73 6f 72 79 | 20 6f 72 20 64 72 69 76 |ccessory| or driv|
|000059f0| 65 72 20 20 22 53 79 73 | 74 65 6d 22 0d 20 20 20 |er "Sys|tem". |
|00005a00| 20 58 43 4d 44 20 20 20 | 20 20 20 20 20 20 20 20 | XCMD | |
|00005a10| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 6e | | the n|
|00005a20| 61 6d 65 20 6f 66 20 74 | 68 65 20 58 43 4d 44 0d |ame of t|he XCMD.|
|00005a30| 20 20 20 20 61 6e 79 74 | 68 69 6e 67 20 65 6c 73 | anyt|hing els|
|00005a40| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 55 |e | "U|
|00005a50| 6e 6b 6e 6f 77 6e 22 0d | 0d 20 20 20 20 54 68 65 |nknown".|. The|
|00005a60| 20 6f 77 6e 65 72 20 6f | 66 20 61 20 63 61 72 64 | owner o|f a card|
|00005a70| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | is the |name of |
|00005a80| 69 74 73 20 62 61 63 6b | 67 72 6f 75 6e 64 2e 0d |its back|ground..|
|00005a90| 0d 4d 6f 72 65 20 50 61 | 72 61 6d 65 74 65 72 73 |.More Pa|rameters|
|00005aa0| 20 41 76 61 69 6c 61 62 | 6c 65 0d 0d 20 20 20 20 | Availab|le.. |
|00005ab0| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 66 |The para|meters f|
|00005ac0| 6f 72 20 74 68 65 20 22 | 73 74 61 72 74 22 2c 20 |or the "|start", |
|00005ad0| 22 73 74 6f 70 22 2c 20 | 61 6e 64 20 22 73 65 74 |"stop", |and "set|
|00005ae0| 22 20 63 6f 6d 6d 61 6e | 64 73 20 61 72 65 20 6e |" comman|ds are n|
|00005af0| 6f 77 20 61 76 61 69 6c | 61 62 6c 65 0d 77 69 74 |ow avail|able.wit|
|00005b00| 68 69 6e 20 6f 76 65 72 | 72 69 64 69 6e 67 20 68 |hin over|riding h|
|00005b10| 61 6e 64 6c 65 72 73 2e | 0d 0d 0d 53 75 6d 6d 61 |andlers.|...Summa|
|00005b20| 72 79 0d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 20 20 20 20 |ry.-----|--.. |
|00005b30| 4e 65 77 20 6d 65 73 73 | 61 67 65 73 3a 20 20 61 |New mess|ages: a|
|00005b40| 70 70 6c 65 45 76 65 6e | 74 2c 20 65 72 72 6f 72 |ppleEven|t, error|
|00005b50| 44 69 61 6c 6f 67 0d 20 | 20 20 20 4e 65 77 20 63 |Dialog. | New c|
|00005b60| 6f 6d 6d 61 6e 64 73 3a | 20 20 72 65 71 75 65 73 |ommands:| reques|
|00005b70| 74 2c 20 72 65 70 6c 79 | 0d 20 20 20 20 4e 65 77 |t, reply|. New|
|00005b80| 20 66 75 6e 63 74 69 6f | 6e 73 3a 20 20 70 72 6f | functio|ns: pro|
|00005b90| 67 72 61 6d 73 28 29 2c | 20 73 79 73 74 65 6d 56 |grams(),| systemV|
|00005ba0| 65 72 73 69 6f 6e 28 29 | 0d 20 20 20 20 4e 65 77 |ersion()|. New|
|00005bb0| 20 70 72 6f 70 65 72 74 | 69 65 73 3a 20 20 74 68 | propert|ies: th|
|00005bc0| 65 20 61 64 64 72 65 73 | 73 2c 20 74 68 65 20 69 |e addres|s, the i|
|00005bd0| 74 65 6d 44 65 6c 69 6d | 69 74 65 72 2c 20 74 68 |temDelim|iter, th|
|00005be0| 65 20 6c 6f 63 6b 45 72 | 72 6f 72 44 69 61 6c 6f |e lockEr|rorDialo|
|00005bf0| 67 73 2c 20 74 68 65 0d | 64 69 61 6c 69 6e 67 54 |gs, the.|dialingT|
|00005c00| 69 6d 65 2c 20 74 68 65 | 20 6f 77 6e 65 72 0d 20 |ime, the| owner. |
|00005c10| 20 20 20 4e 65 77 20 63 | 6f 6e 73 74 61 6e 74 73 | New c|onstants|
|00005c20| 3a 20 20 63 6f 6d 6d 61 | 2c 20 63 6f 6c 6f 6e 0d |: comma|, colon.|
|00005c30| 0d 20 20 20 20 45 6e 68 | 61 6e 63 65 64 20 63 6f |. Enh|anced co|
|00005c40| 6d 6d 61 6e 64 73 3a 20 | 6f 70 65 6e 2c 20 70 72 |mmands: |open, pr|
|00005c50| 69 6e 74 2c 20 63 6c 6f | 73 65 2c 20 73 65 6e 64 |int, clo|se, send|
|00005c60| 2c 20 72 65 61 64 2c 20 | 77 72 69 74 65 2c 20 61 |, read, |write, a|
|00005c70| 6e 73 77 65 72 2c 20 6c | 6f 63 6b 2c 0d 75 6e 6c |nswer, l|ock,.unl|
|00005c80| 6f 63 6b 2c 20 73 65 74 | 2c 20 73 74 61 72 74 2c |ock, set|, start,|
|00005c90| 20 73 74 6f 70 0d 0d 0d | 2a 2a 2a 2a 2a 2a 0d 0d | stop...|******..|
|00005ca0| 53 75 62 6a 65 63 74 3a | 20 50 72 6f 70 65 72 74 |Subject:| Propert|
|00005cb0| 69 65 73 20 66 6f 72 20 | 77 69 6e 64 6f 77 73 20 |ies for |windows |
|00005cc0| 69 6e 20 48 79 70 65 72 | 43 61 72 64 20 32 2e 31 |in Hyper|Card 2.1|
|00005cd0| 0d 44 61 74 65 3a 20 32 | 31 20 4d 61 79 20 39 31 |.Date: 2|1 May 91|
|00005ce0| 20 30 30 3a 30 32 3a 31 | 30 20 47 4d 54 0d 0d 0d | 00:02:1|0 GMT...|
|00005cf0| 49 6e 20 48 79 70 65 72 | 43 61 72 64 20 32 2e 31 |In Hyper|Card 2.1|
|00005d00| 2c 20 61 6c 6c 20 77 69 | 6e 64 6f 77 73 20 68 61 |, all wi|ndows ha|
|00005d10| 76 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ve the f|ollowing|
|00005d20| 20 70 72 6f 70 65 72 74 | 69 65 73 3a 0d 20 0d 20 | propert|ies:. . |
|00005d30| 20 6c 6f 63 20 20 20 20 | 20 20 28 6f 72 20 22 6c | loc | (or "l|
|00005d40| 6f 63 61 74 69 6f 6e 22 | 29 0d 20 20 76 69 73 69 |ocation"|). visi|
|00005d50| 62 6c 65 0d 20 20 6e 61 | 6d 65 20 20 20 20 20 28 |ble. na|me (|
|00005d60| 6e 65 77 20 66 6f 72 20 | 77 69 6e 64 6f 77 73 20 |new for |windows |
|00005d70| 69 6e 20 32 2e 31 29 0d | 20 20 6e 75 6d 62 65 72 |in 2.1).| number|
|00005d80| 20 20 20 28 6e 65 77 20 | 66 6f 72 20 77 69 6e 64 | (new |for wind|
|00005d90| 6f 77 73 20 69 6e 20 32 | 2e 31 3b 20 67 69 76 65 |ows in 2|.1; give|
|00005da0| 6e 20 69 6e 20 66 72 6f | 6e 74 2d 74 6f 2d 62 61 |n in fro|nt-to-ba|
|00005db0| 63 6b 20 6f 72 64 65 72 | 29 0d 20 20 69 64 20 20 |ck order|). id |
|00005dc0| 20 20 20 20 20 28 6e 65 | 77 20 66 6f 72 20 77 69 | (ne|w for wi|
|00005dd0| 6e 64 6f 77 73 20 69 6e | 20 32 2e 31 29 0d 20 20 |ndows in| 2.1). |
|00005de0| 6f 77 6e 65 72 20 20 20 | 20 28 6e 65 77 20 69 6e |owner | (new in|
|00005df0| 20 32 2e 31 29 0d 0d 4e | 75 6d 62 65 72 73 20 61 | 2.1)..N|umbers a|
|00005e00| 6e 64 20 49 44 73 20 66 | 6f 72 20 77 69 6e 64 6f |nd IDs f|or windo|
|00005e10| 77 73 20 77 65 72 65 20 | 61 64 64 65 64 20 74 6f |ws were |added to|
|00005e20| 20 6d 61 6b 65 20 69 74 | 20 70 6f 73 73 69 62 6c | make it| possibl|
|00005e30| 65 20 66 6f 72 20 73 63 | 72 69 70 74 65 72 73 20 |e for sc|ripters |
|00005e40| 74 6f 0d 64 69 73 74 69 | 6e 67 75 69 73 68 20 62 |to.disti|nguish b|
|00005e50| 65 74 77 65 65 6e 20 74 | 77 6f 20 77 69 6e 64 6f |etween t|wo windo|
|00005e60| 77 73 20 77 69 74 68 20 | 74 68 65 20 73 61 6d 65 |ws with |the same|
|00005e70| 20 6e 61 6d 65 2e 20 20 | 4e 6f 77 20 74 68 61 74 | name. |Now that|
|00005e80| 20 74 68 65 79 27 76 65 | 20 62 65 65 6e 0d 61 64 | they've| been.ad|
|00005e90| 64 65 64 2c 20 74 68 65 | 72 65 20 61 72 65 20 66 |ded, the|re are f|
|00005ea0| 6f 75 72 20 77 61 79 73 | 20 74 6f 20 73 70 65 63 |our ways| to spec|
|00005eb0| 69 66 79 20 62 75 69 6c | 74 2d 69 6e 20 77 69 6e |ify buil|t-in win|
|00005ec0| 64 6f 77 73 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |dows. F|or examp|
|00005ed0| 6c 65 3a 0d 20 0d 20 20 | 20 73 68 6f 77 20 74 68 |le:. . | show th|
|00005ee0| 65 20 63 61 72 64 20 77 | 69 6e 64 6f 77 0d 20 20 |e card w|indow. |
|00005ef0| 20 73 68 6f 77 20 77 69 | 6e 64 6f 77 20 3c 74 68 | show wi|ndow <th|
|00005f00| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 63 61 |e name o|f the ca|
|00005f10| 72 64 20 77 69 6e 64 6f | 77 3e 0d 20 20 20 73 68 |rd windo|w>. sh|
|00005f20| 6f 77 20 77 69 6e 64 6f | 77 20 3c 74 68 65 20 6e |ow windo|w <the n|
|00005f30| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 63 61 72 |umber of| the car|
|00005f40| 64 20 77 69 6e 64 6f 77 | 3e 0d 20 20 20 73 68 6f |d window|>. sho|
|00005f50| 77 20 77 69 6e 64 6f 77 | 20 69 64 20 3c 74 68 65 |w window| id <the|
|00005f60| 20 69 64 20 6f 66 20 74 | 68 65 20 63 61 72 64 20 | id of t|he card |
|00005f70| 77 69 6e 64 6f 77 3e 0d | 20 0d 41 6e 64 20 74 68 |window>.| .And th|
|00005f80| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 77 61 |ere are |three wa|
|00005f90| 79 73 20 74 6f 20 73 70 | 65 63 69 66 79 20 61 6c |ys to sp|ecify al|
|00005fa0| 6c 20 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 73 20 |l other |windows |
|00005fb0| 2d 2d 20 62 79 20 6e 61 | 6d 65 2c 20 62 79 20 6e |-- by na|me, by n|
|00005fc0| 75 6d 62 65 72 2c 20 61 | 6e 64 0d 62 79 20 69 64 |umber, a|nd.by id|
|00005fd0| 2e 20 20 41 6c 6c 20 6f | 66 20 74 68 65 20 64 69 |. All o|f the di|
|00005fe0| 66 66 65 72 65 6e 74 20 | 77 61 79 73 20 6f 66 20 |fferent |ways of |
|00005ff0| 72 65 66 65 72 72 69 6e | 67 20 74 6f 20 77 69 6e |referrin|g to win|
|00006000| 64 6f 77 73 20 61 72 65 | 20 69 6e 74 65 72 63 68 |dows are| interch|
|00006010| 61 6e 67 65 61 62 6c 65 | 2e 0d 59 6f 75 20 63 61 |angeable|..You ca|
|00006020| 6e 20 75 73 65 20 74 68 | 65 6d 20 77 69 74 68 20 |n use th|em with |
|00006030| 74 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 67 65 74 |the comm|ands get|
|00006040| 2c 20 73 65 74 2c 20 73 | 65 6e 64 2c 20 63 6c 6f |, set, s|end, clo|
|00006050| 73 65 2c 20 68 69 64 65 | 2c 20 61 6e 64 20 73 68 |se, hide|, and sh|
|00006060| 6f 77 2c 20 77 69 74 68 | 0d 74 68 65 20 6e 75 6d |ow, with|.the num|
|00006070| 62 65 72 20 66 75 6e 63 | 74 69 6f 6e 2c 20 61 6e |ber func|tion, an|
|00006080| 64 20 69 6e 20 70 72 6f | 70 65 72 74 79 20 65 78 |d in pro|perty ex|
|00006090| 70 72 65 73 73 69 6f 6e | 73 2e 0d 20 0d 49 6e 20 |pression|s.. .In |
|000060a0| 6f 72 64 65 72 20 74 6f | 20 6d 61 6b 65 20 74 68 |order to| make th|
|000060b0| 65 20 49 44 20 6f 66 20 | 61 20 6e 65 77 6c 79 20 |e ID of |a newly |
|000060c0| 63 72 65 61 74 65 64 20 | 50 69 63 74 75 72 65 20 |created |Picture |
|000060d0| 77 69 6e 64 6f 77 20 61 | 76 61 69 6c 61 62 6c 65 |window a|vailable|
|000060e0| 20 66 6f 72 20 75 73 65 | 20 62 79 0d 73 63 72 69 | for use| by.scri|
|000060f0| 70 74 65 72 73 2c 20 77 | 65 27 76 65 20 61 64 64 |pters, w|e've add|
|00006100| 65 64 20 61 20 73 65 63 | 6f 6e 64 20 70 61 72 61 |ed a sec|ond para|
|00006110| 6d 65 74 65 72 20 74 6f | 20 74 68 65 20 22 6f 70 |meter to| the "op|
|00006120| 65 6e 50 69 63 74 75 72 | 65 22 20 6d 65 73 73 61 |enPictur|e" messa|
|00006130| 67 65 20 2d 2d 20 74 68 | 65 0d 77 69 6e 64 6f 77 |ge -- th|e.window|
|00006140| 20 49 44 2e 20 20 57 65 | 27 76 65 20 64 6f 6e 65 | ID. We|'ve done|
|00006150| 20 74 68 65 20 73 61 6d | 65 20 74 68 69 6e 67 20 | the sam|e thing |
|00006160| 66 6f 72 20 74 68 65 20 | 50 61 6c 65 74 74 65 20 |for the |Palette |
|00006170| 58 43 4d 44 2c 20 77 68 | 69 63 68 20 73 65 6e 64 |XCMD, wh|ich send|
|00006180| 73 20 61 6e 0d 22 6f 70 | 65 6e 50 61 6c 65 74 74 |s an."op|enPalett|
|00006190| 65 22 20 6d 65 73 73 61 | 67 65 20 77 68 65 6e 20 |e" messa|ge when |
|000061a0| 69 74 20 63 72 65 61 74 | 65 73 20 61 20 6e 65 77 |it creat|es a new|
|000061b0| 20 77 69 6e 64 6f 77 2e | 0d 20 0d 54 68 65 20 6f | window.|. .The o|
|000061c0| 77 6e 65 72 20 70 72 6f | 70 65 72 74 79 20 77 69 |wner pro|perty wi|
|000061d0| 6c 6c 20 62 65 20 75 73 | 65 66 75 6c 20 66 6f 72 |ll be us|eful for|
|000061e0| 20 70 65 6f 70 6c 65 20 | 6d 61 6e 61 67 69 6e 67 | people |managing|
|000061f0| 20 6c 61 72 67 65 20 6e | 75 6d 62 65 72 73 20 6f | large n|umbers o|
|00006200| 66 20 77 69 6e 64 6f 77 | 73 2e 0d 49 74 27 73 20 |f window|s..It's |
|00006210| 22 48 79 70 65 72 43 61 | 72 64 22 20 66 6f 72 20 |"HyperCa|rd" for |
|00006220| 61 6e 79 20 6f 66 20 48 | 79 70 65 72 43 61 72 64 |any of H|yperCard|
|00006230| 27 73 20 62 75 69 6c 74 | 2d 69 6e 20 77 69 6e 64 |'s built|-in wind|
|00006240| 6f 77 73 2c 20 22 53 79 | 73 74 65 6d 22 20 66 6f |ows, "Sy|stem" fo|
|00006250| 72 20 77 69 6e 64 6f 77 | 73 0d 6f 77 6e 65 64 20 |r window|s.owned |
|00006260| 62 79 20 64 65 73 6b 20 | 61 63 63 65 73 73 6f 72 |by desk |accessor|
|00006270| 69 65 73 20 6f 72 20 64 | 72 69 76 65 72 73 2c 20 |ies or d|rivers, |
|00006280| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 6f 66 20 74 |the name| of of t|
|00006290| 68 65 20 65 78 74 65 72 | 6e 61 6c 20 74 68 61 74 |he exter|nal that|
|000062a0| 20 63 72 65 61 74 65 64 | 0d 74 68 65 20 77 69 6e | created|.the win|
|000062b0| 64 6f 77 20 66 6f 72 20 | 65 78 74 65 72 6e 61 6c |dow for |external|
|000062c0| 20 77 69 6e 64 6f 77 73 | 2c 20 61 6e 64 20 22 55 | windows|, and "U|
|000062d0| 6e 6b 6e 6f 77 6e 22 20 | 66 6f 72 20 65 76 65 72 |nknown" |for ever|
|000062e0| 79 74 68 69 6e 67 20 65 | 6c 73 65 2e 0d 20 0d 4b |ything e|lse.. .K|
|000062f0| 65 76 69 6e 20 43 61 6c | 68 6f 75 6e 0d 6a 6b 63 |evin Cal|houn.jkc|
|00006300| 40 61 70 70 6c 65 2e 63 | 6f 6d 0d 0d 0d 0d 00 00 |@apple.c|om......|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 01 00 00 00 01 5c | 00 00 00 5c 00 00 00 5a |.......\|...\...Z|
|00006390| 20 0b 37 20 0c 01 70 03 | 20 0d 86 12 0b ea 48 6e | .7 ..p.| .....Hn|
|000063a0| 01 fd fc 20 06 20 0c 55 | 20 0d 86 20 0e 01 fd fc |... . .U| .. ....|
|000063b0| 0d 48 79 70 65 72 43 61 | 72 64 20 32 2e 31 02 00 |.HyperCa|rd 2.1..|
|000063c0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000063d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 a9 81 4a 55 00 00 | 00 00 00 00 01 b6 09 50 |....JU..|.......P|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.